| 1 |
/* Test C23 reproducible attribute: invalid syntax. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "-std=c23 -pedantic-errors" } */ |
| 4 |
|
| 5 |
int a () [[reproducible()]]; /* { dg-error "'reproducible' attribute does not take any arguments" } */ |
| 6 |
|
| 7 |
int b () [[reproducible(0)]]; /* { dg-error "expected" } */ |
| 8 |
/* { dg-error "'reproducible' attribute does not take any arguments" "" { target *-*-* } .-1 } */ |
| 9 |
|
| 10 |
int c () [[reproducible("", 123)]]; /* { dg-error "expected" } */ |
| 11 |
/* { dg-error "'reproducible' attribute does not take any arguments" "" { target *-*-* } .-1 } */ |
| 12 |
|
| 13 |
int d () [[reproducible((""))]]; /* { dg-error "expected" } */ |
| 14 |
/* { dg-error "'reproducible' attribute does not take any arguments" "" { target *-*-* } .-1 } */ |