2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.ns / invalid1.C
blob38e4d3305b8cde1a1fbc1835ee4408ff7fef7f4c
1 // { dg-do assemble  }
2 namespace x { }
4 void f(int);
6 int main()
8         x();   // { dg-error "" } calling a namespace
9         x=4;   // { dg-error "" } assigning to a namespace
10         f(x);  // { dg-error "" } passing a namespace as parameter