diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-12 18:41:05 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-12 18:41:05 +0000 |
| commit | d74dd49065ba4109b8b04209fd197d85857d4281 (patch) | |
| tree | d69627d08adff9adc4fcc5f27760933bc7782130 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 1a22d2889b234fcb10cad83be231b113e6d3a8b3 (diff) | |
| download | bcm5719-llvm-d74dd49065ba4109b8b04209fd197d85857d4281.tar.gz bcm5719-llvm-d74dd49065ba4109b8b04209fd197d85857d4281.zip | |
Proper initializer list support for new expressions and type construct expressions. Array new still missing.
llvm-svn: 150346
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index 13456e0c8d2..f162c6f32d7 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -41,7 +41,8 @@ void Lambda() { int InitList() { (void)new int {}; // expected-warning {{generalized initializer lists are incompatible with C++98}} \ // expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}} - (void)int{}; // expected-warning {{generalized initializer lists are incompatible with C++98}} + (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}} return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}} } |

