testsuite: fix c23-constexpr-2a.c test to use dg-do run
Checks
Commit Message
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.
---
OK?
gcc/testsuite/gcc.dg/c23-constexpr-2a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 31 Oct 2024, Sam James wrote:
> 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.
OK.
@@ -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" } */