blob: 9c2467be64533bffa67590a0f09149e3ffb16cd6 [file] [log] [blame]
Douglas Gregord9949ab2009-08-28 22:03:51 +00001// RUN: clang-cc -fsyntax-only %s
2
3// FIXME: We need to test anonymous structs/unions in templates for real.
4
5template <typename T> class A { struct { }; };
6
7A<int> a0;
8
Anders Carlsson20c55142009-09-01 04:26:58 +00009template <typename T> struct B {
10 union {
11 int a;
12 void* b;
13 };
14
15 void f() {
16 a = 10;
17 b = 0;
18 }
19};
20
21B<int> b0;