[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / static-array-member.cpp
blob8f575491b245eba56d2efe3c531babdb85ad92d0
1 // RUN: %clang_cc1 -fsyntax-only %s
3 struct X0 {
4 static int array[];
6 int x;
7 int y;
8 };
10 int X0::array[sizeof(X0) * 2];
12 template<typename T, int N>
13 struct X1 {
14 static T array[];
17 template<typename T, int N>
18 T X1<T, N>::array[N];