| 1 | // RUN: %clang_cc1 -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]; |
| 19 |