diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-26 23:49:01 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-26 23:49:01 +0000 |
| commit | 2fbb3d84a218c9ed4716673028f170691ddb977c (patch) | |
| tree | cf97dc82c88cf4089502cb43ebd4e83753683725 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 9a6403a9ded5030aa12632afdfc89f59f4f43762 (diff) | |
| download | bcm5719-llvm-2fbb3d84a218c9ed4716673028f170691ddb977c.tar.gz bcm5719-llvm-2fbb3d84a218c9ed4716673028f170691ddb977c.zip | |
Tests for r151508.
llvm-svn: 151509
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index 12b95765e0f..8c15f5adc1e 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -45,6 +45,8 @@ int InitList() { (void)int{}; // expected-warning {{generalized initializer lists are incompatible with C++98}} \ // expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}} int x { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}} + S<int> s = {}; // ok, aggregate + s = {}; // expected-warning {{generalized initializer lists are incompatible with C++98}} return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}} } |

