blob: 38e4d3305b8cde1a1fbc1835ee4408ff7fef7f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// { dg-do assemble }
namespace x { }
void f(int);
int main()
{
x(); // { dg-error "" } calling a namespace
x=4; // { dg-error "" } assigning to a namespace
f(x); // { dg-error "" } passing a namespace as parameter
}
|