blob: b292dbe8c228da5c74ac6972a348dbc85d8d301d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* { dg-do compile } */
/* { dg-options "-Wmissing-variable-declarations" } */
int b0; /* { dg-warning "no previous declaration for 'b0'" } */
int b1 = 1; /* { dg-warning "no previous declaration for 'b1'" } */
int b2; /* { dg-warning "no previous declaration for 'b2'" } */
int b2 = 2;
struct {
int g0;
} b3; /* { dg-warning "no previous declaration for 'b3'" } */
int b4; /* { dg-warning "no previous declaration for 'b4'" } */
int b4 = 3;
extern int b4;
static int g1;
void g2(void);
extern int g3;
int g3;
int g3 = 4;
struct g4 {
int g5;
};
void g6(void) {
int g7;
}
|