repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/53848
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
other
/
nested-extern-2.C
blob
58f53e083f9decd7325a51ab5c455d5f3c4246fd
1
/* { dg-do run } */
2
// { dg-additional-sources "nested-extern.cc" }
3
/* PR 31775 */
4
extern "C" void abort();
5
static int i;
6
int *p = &i;
7
int main()
8
{
9
int i;
10
{
11
extern int i;
12
i = 1;
13
*p = 2;
14
if (i == 2)
15
abort ();
16
}
17
return 0;
18
}