summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/parse-error-3.c
blob: 8e72b8170afdec58f613ac646d9102119b33da96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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" } */
{}