Commit 97cf4d2d by Jason Merrill

new

From-SVN: r20060
parent 276ca6ea
namespace{
void f();
}
int main()
{
f();
}
namespace{
void f(){}
}
//Build don't link:
namespace x { };
void f(int);
int main()
{
x(); // ERROR - calling a namespace
x=4; // ERROR - assigning to a namespace
f(x); // ERROR - passing a namespace as parameter
}
//Build don't link:
struct S{
static const int i;
static const int j;
};
typedef S T;
const int T::i = 4;
const int T::j = 4;
//Build don't link:
template<class T>
struct X{
T v;
X(){}
virtual ~X(){}
virtual inline T f(T x){return x;}
};
void f()
{
typedef int H;
X<H> y;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment