CMake/Tests/CompileFeatures/cxx_aggregate_default_initializers.cpp
Stephen Kelly dd043c3f21 Features: Add support for C++14 features.
Record the features implemented by GNU 4.9 and Clang 3.4.
2014-05-22 18:01:23 +02:00

10 lines
181 B
C++

struct X { int i, j, k = 42; };
int someFunc()
{
X a[] = { 1, 2, 3, 4, 5, 6 };
X b[2] = { { 1, 2, 3 }, { 4, 5, 6 } };
return a[0].k == b[0].k && a[1].k == b[1].k ? 0 : 1;
}