[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / non-empty-class-size-zero.cpp
blob52f6e928d4c4509e1b965777e09dc5514c7c632d
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s
3 struct X {
4 int array[0];
5 int array1[0];
6 int array2[0];
7 X();
8 ~X();
9 };
11 struct Y {
12 int first;
13 X padding;
14 int second;
17 int zero_size_array[(sizeof(Y) == 8) -1]; // no error here!