YouCompleteMe/cpp/llvm/tools/clang/test/SemaCXX/non-empty-class-size-zero.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

19 lines
285 B
C++

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s
// rdar://8945175
struct X {
int array[0];
int array1[0];
int array2[0];
X();
~X();
};
struct Y {
int first;
X padding;
int second;
};
int zero_size_array[(sizeof(Y) == 8) -1]; // no error here!