From: Tom de Vries Date: Wed, 9 Feb 2022 15:48:27 +0000 (+0100) Subject: [testsuite] Require non_strict_prototype in a few tests X-Git-Tag: basepoints/gcc-13~1121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cc6a8d00af8a2ca8303a2894286911b8898da83;p=thirdparty%2Fgcc.git [testsuite] Require non_strict_prototype in a few tests Require effective target non_strict_prototype in a few test-cases. Tested on nvptx. gcc/testsuite/ChangeLog: 2022-02-10 Tom de Vries * gcc.c-torture/compile/pr100576.c: Require effective target non_strict_prototype. * gcc.c-torture/compile/pr97576.c: Same. --- diff --git a/gcc/testsuite/gcc.c-torture/compile/pr100576.c b/gcc/testsuite/gcc.c-torture/compile/pr100576.c index f2f40ec45120..f16a8224c6ea 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr100576.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr100576.c @@ -1,3 +1,5 @@ +/* { dg-require-effective-target non_strict_prototype } */ + /* PR middle-end/100576 */ const char v[] = {0x12}; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr97576.c b/gcc/testsuite/gcc.c-torture/compile/pr97576.c index 28294c8597ab..d2816132cc0c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr97576.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr97576.c @@ -1,3 +1,5 @@ +/* { dg-require-effective-target non_strict_prototype } */ + void pc (void);