diff options
Diffstat (limited to 'test/SemaCXX/aggregate-init-cxx98.cpp')
-rw-r--r-- | test/SemaCXX/aggregate-init-cxx98.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/aggregate-init-cxx98.cpp b/test/SemaCXX/aggregate-init-cxx98.cpp new file mode 100644 index 000000000000..332801f0822c --- /dev/null +++ b/test/SemaCXX/aggregate-init-cxx98.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -std=c++98 -verify %s + +struct A { + A() = default; // expected-warning {{C++11}} + int n; +}; +A a = {0}; |