blob: 2c1e9d4c1919e1780b0403c36bc0c7d1a6f7e55d [file] [log] [blame]
// RUN: clang-cc -fsyntax-only %s
// FIXME: We need to test anonymous structs/unions in templates for real.
template <typename T> class A { struct { }; };
A<int> a0;
template <typename T> struct B {
union {
int a;
void* b;
};
void f() {
a = 10;
b = 0;
}
};
B<int> b0;
template <typename T> struct C {
union {
int a;
void* b;
};
C(int a) : a(a) { }
C(void* b) : b(b) { }
};
C<int> c0;