OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.ns/] [extern1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.