diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp1z/nodiscard3.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1z/nodiscard3.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1z/nodiscard3.C b/gcc/testsuite/g++.dg/cpp1z/nodiscard3.C index 4d4e60e..4d24ce5 100644 --- a/gcc/testsuite/g++.dg/cpp1z/nodiscard3.C +++ b/gcc/testsuite/g++.dg/cpp1z/nodiscard3.C @@ -1,6 +1,6 @@ /* nodiscard attribute tests, adapted from gcc.dg/attr-warn-unused-result.c. */ -/* { dg-do compile } */ -/* { dg-options "-std=c++17 -O -ftrack-macro-expansion=0" } */ +/* { dg-do compile { target c++17 } } */ +/* { dg-options "-O -ftrack-macro-expansion=0" } */ #define WUR [[nodiscard]] #define WURAI [[nodiscard, gnu::always_inline]] inline |