diff options
author | Sam James <sam@gentoo.org> | 2024-10-31 18:37:30 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-10-31 18:37:30 +0000 |
commit | 2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c (patch) | |
tree | 30d17518a3d12127e46ad70f0fa40467aa9efe01 /gcc | |
parent | 9eae9268e41463927c9383004e58708048ec379f (diff) | |
download | gcc-2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c.zip gcc-2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c.tar.gz gcc-2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/c23-constexpr-2a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/c23-constexpr-2a.c b/gcc/testsuite/gcc.dg/c23-constexpr-2a.c index a08097a..3fe3756 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" } */ |