repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove outermost loop parameter.
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
extern1.C
blob
c5b7ea7475cebee930b88deac4369fcfc7f5eda9
1
// { dg-do link }
2
3
// Based on a testcase by eyal.ben-david@aks.com
4
5
// An extern declaration of an undeclared object within a function
6
// introduces the object into the enclosing namespace [basic.link]/7
7
8
namespace {
9
void foo() {
10
extern int xx;
11
xx = 0;
12
}
13
int xx = 1;
14
}
15
16
int main() {
17
xx = 2;
18
}