blob: 01fbb37436f62644ea889ab904866ce8c6447f72 [file] [log] [blame]
/* nodiscard attribute tests */
/* { dg-do compile { target c++20 } } */
/* { dg-options "-O" } */
[[nodiscard("not", "allowed")]] int check1 (void); /* { dg-error "wrong number of arguments.\[^\n\r]*nodiscard" } */
void
test (void)
{
check1 ();
(void) check1 ();
}