]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fix c23-constexpr-2a.c test to use dg-do run
authorSam James <sam@gentoo.org>
Thu, 31 Oct 2024 18:37:30 +0000 (18:37 +0000)
committerSam James <sam@gentoo.org>
Thu, 31 Oct 2024 18:37:30 +0000 (18:37 +0000)
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.

gcc/testsuite/gcc.dg/c23-constexpr-2a.c

index a08097a126bd8ea07c9c266fb5c0b59d234b4c27..3fe3756f379a55390b6914d762c126a88d8c4ac8 100644 (file)
@@ -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" } */