OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / scoping8.C
1 // { dg-do assemble  }
2 // Bug: g++ allows two different meanings of a name in the same scope.
3
4 typedef int foo;                // { dg-error "" } 
5 struct A {
6   A (foo);
7   int foo ();                   // { dg-error "" } foo already used in scope
8 };