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