gcc/testsuite/gcc.dg/c99-restrict-3.c
raw| 1 | /* restrict qualifiers on non-pointers must be diagnosed even when |
| 2 | only a tag is being declared. PR 38243. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "-std=iso9899:1999 -pedantic-errors" } */ |
| 5 | |
| 6 | restrict struct s; /* { dg-error "restrict" } */ |
| 7 | restrict union u; /* { dg-error "restrict" } */ |