diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/parse-error-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/parse-error-3.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/parse-error-3.c b/gcc/testsuite/gcc.dg/parse-error-3.c new file mode 100644 index 00000000000..1a463b5dd6b --- /dev/null +++ b/gcc/testsuite/gcc.dg/parse-error-3.c @@ -0,0 +1,14 @@ +/* PR c/43384 */ +/* { dg-do "compile" } */ + +void c_direct(par) + void *par = &&lab; /* { dg-error "is initialized|non-standard|outside of" } */ +{} + +void foo(p, q) + int *p = &q; /* { dg-error "initialized|undeclared" } */ +{} + +void bar(i) + int j = i; /* { dg-error "initialized|undeclared|no such parameter" } */ +{} |