]>
git.ipfire.org Git - thirdparty/gcc.git/blob - 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" } */
5 [[nodiscard
, __nodiscard__
]] int f (void);
6 [[__nodiscard__
, nodiscard("message")]] int g (void);