blob: 546c7d2802116f7540e37350c2c1250963bdd1bf [file] [log] [blame]
/* nodiscard attribute tests */
/* { dg-do compile { target c++2a } } */
/* { dg-options "-O" } */
[[nodiscard(123)]] int check1 (void); /* { dg-error "nodiscard\[^\n\r]*must be a string constant" } */
void
test (void)
{
check1 ();
(void) check1 ();
}