Debian Codegraph @

gcc/testsuite/gcc.dg/c23-attr-nodiscard-4.c

raw
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);