https://gcc.gnu.org/g:2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c

commit r15-4813-g2a4ee57b04398e54284e3d6b5ed4f8842ee26a5c
Author: Sam James <s...@gentoo.org>
Date:   Thu Oct 31 18:37:30 2024 +0000

    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:
---
 gcc/testsuite/gcc.dg/c23-constexpr-2a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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" } */

Reply via email to