Sign in
gnu
/
gcc
/
e28e8ab1a92e9b49f7c4045377577c8dc17751b7
/
.
/
gcc
/
testsuite
/
gcc.dg
/
c23-attr-nodiscard-4.c
blob: 5add9de744fc5b2c8475d3cb5bd679e30c168f8b [
file
] [
log
] [
blame
]
/* Test C23 nodiscard attribute: duplicates (allowed after N2557). */
/* { dg-do compile } */
/* { dg-options "-std=c23 -pedantic-errors" } */
[[
nodiscard
,
__nodiscard__
]]
int
f
(
void
);
[[
__nodiscard__
,
nodiscard
(
"message"
)]]
int
g
(
void
);