]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-attr-nodiscard-4.c
testsuite: Refer more consistently to C23 not C2X
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-attr-nodiscard-4.c
1 /* Test C23 nodiscard attribute: duplicates (allowed after N2557). */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c23 -pedantic-errors" } */
4
5 [[nodiscard, __nodiscard__]] int f (void);
6 [[__nodiscard__, nodiscard("message")]] int g (void);