Douglas Gregor | 3dab34a | 2009-09-09 01:45:28 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only %s |
2 | |||||
3 | struct X0 { | ||||
4 | static int array[]; | ||||
5 | |||||
6 | int x; | ||||
7 | int y; | ||||
8 | }; | ||||
9 | |||||
10 | int X0::array[sizeof(X0) * 2]; | ||||
11 | |||||
12 | template<typename T, int N> | ||||
13 | struct X1 { | ||||
14 | static T array[]; | ||||
15 | }; | ||||
16 | |||||
17 | template<typename T, int N> | ||||
18 | T X1<T, N>::array[N]; |