* arm.c (FL_WBUF): Define.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / extern1.C
blobc5b7ea7475cebee930b88deac4369fcfc7f5eda9
1 // { dg-do link  }
3 // Based on a testcase by eyal.ben-david@aks.com
5 // An extern declaration of an undeclared object within a function
6 // introduces the object into the enclosing namespace [basic.link]/7
8 namespace {
9   void foo() {
10     extern int xx;
11     xx = 0;
12   }
13   int xx = 1;
16 int main() {
17   xx = 2;