From: Sam James Date: Thu, 31 Oct 2024 18:37:30 +0000 (+0000) Subject: testsuite: fix c23-constexpr-2a.c test to use dg-do run X-Git-Tag: basepoints/gcc-16~4740 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c;p=thirdparty%2Fgcc.git testsuite: fix c23-constexpr-2a.c test to use dg-do run The comment at the top of the test indicates it should be an execution test, but it was only using 'dg-do link'. Correct that. The only change in test results is as expected: ``` +PASS: gcc.dg/c23-constexpr-2a.c execution test ``` gcc/testsuite/ChangeLog: PR testsuite/117183 * gcc.dg/c23-constexpr-2a.c: Use dg-do run. --- diff --git a/gcc/testsuite/gcc.dg/c23-constexpr-2a.c b/gcc/testsuite/gcc.dg/c23-constexpr-2a.c index a08097a126bd..3fe3756f379a 100644 --- a/gcc/testsuite/gcc.dg/c23-constexpr-2a.c +++ b/gcc/testsuite/gcc.dg/c23-constexpr-2a.c @@ -1,5 +1,5 @@ /* Test C23 constexpr. Valid code, execution test. */ -/* { dg-do link } */ +/* { dg-do run } */ /* { dg-options "-std=c23 -pedantic-errors" } */ /* { dg-additional-sources "c23-constexpr-2b.c" } */