Commit 318e85cf by Jason Merrill

add

From-SVN: r15721
parent 405a745b
// Build don't link:
template<int N_length> template<int N_length>
struct B struct B
{ {
......
// Build don't link:
struct X { struct X {
enum { enum {
a = 0, a = 0,
......
// Build don't link:
template<class T> template<class T>
struct A { struct A {
typedef T T1; typedef T T1;
......
// Build don't link:
class Base {
public:
class Bar { public: virtual ~Bar() {}; };
};
class Derived : public Base {
public:
class Bar : public Base::Bar {};
};
template <class T>
struct XYZ : public T::Bar {
XYZ(): T::Bar() { }
};
void test() {
XYZ<Base> b;
XYZ<Derived> d;
}
template <class T> // Build don't link:
struct S // Special g++ Options: -Wunused
{
struct R
{
R();
~R();
};
void foo() template <class T>
{ struct S
R r; {
int i; struct R
} {
R();
~R();
};
S(); void foo()
~S(); {
}; R r; // no warning
int i; // WARNING - unused
}
void f() S();
{ ~S();
S<int> si; };
si.foo();
} void f()
{
S<int> si;
si.foo();
}
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