Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.ns
/
invalid1.C
blob: 38e4d3305b8cde1a1fbc1835ee4408ff7fef7f4c [
file
] [
log
] [
blame
]
// { 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
}