1 /* PR c/96596 - ICE on a declaration of a built-in with invalid array
2 argument
3 { dg-do compile } */
4
5 void __builtin_abort (int[foo]); /* { dg-error "'foo' undeclared" } */
6 void __builtin_trap (int[__SIZE_MAX__]); /* { dg-error "size of unnamed array is too large" } */
7 void __builtin_unreachable (int[][]); /* { dg-error "array type has incomplete element type" } */
8
9 void __builtin_exit (int, int[+]); /* { dg-error "expected expression before" } */
10
11 /* { dg-prune-output "\\\[-Wbuiltin-declaration-mismatch" } */
12