OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash9.C
1 // { dg-do assemble  }
2
3 template <class T>
4 void f(T) {}
5
6 class C;    // { dg-error "forward declaration" }
7
8 void g(const C& c)
9 {
10   f(c); // { dg-error "invalid use of incomplete type|initializing argument" }
11 }