Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/redecl-9.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* Test for multiple declarations and composite types, as in bug | |
2 13801. Test types saved from outer scopes are up to date. */ | |
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ | |
4 /* { dg-do compile } */ | |
5 /* { dg-options "" } */ | |
6 | |
7 int x[]; | |
8 | |
9 void | |
10 f (void) | |
11 { | |
12 extern int x[]; | |
13 } | |
14 | |
15 int x[10]; | |
16 | |
17 void | |
18 g (void) | |
19 { | |
20 int x; | |
21 { | |
22 extern int x[10]; | |
23 } | |
24 } | |
25 | |
26 void | |
27 h (void) | |
28 { | |
29 sizeof (x); | |
30 } |