diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-15 04:11:50 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-10-15 04:11:50 +0000 |
| commit | 6b46488ff22697f633004ce8fc77c0182601c8d7 (patch) | |
| tree | e6af60ded6747e27544d24d9e7db27ff99a51abf | |
| parent | 6afe37294fdc85c17882ab7fd79b3f8fca8a5321 (diff) | |
| download | bcm5719-llvm-6b46488ff22697f633004ce8fc77c0182601c8d7.tar.gz bcm5719-llvm-6b46488ff22697f633004ce8fc77c0182601c8d7.zip | |
Testcase for half of r142048.
llvm-svn: 142053
| -rw-r--r-- | clang/test/Parser/cxx0x-in-cxx98.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx0x-in-cxx98.cpp b/clang/test/Parser/cxx0x-in-cxx98.cpp index 95ceafdfc5c..e5f104168a8 100644 --- a/clang/test/Parser/cxx0x-in-cxx98.cpp +++ b/clang/test/Parser/cxx0x-in-cxx98.cpp @@ -16,3 +16,8 @@ struct D final : B { // expected-warning {{'final' keyword accepted as a C++11 e virtual void f() override; // expected-warning {{'override' keyword accepted as a C++11 extension}} virtual void g() final; // expected-warning {{'final' keyword accepted as a C++11 extension}} }; + +void NewBracedInitList() { + // A warning on this would be sufficient once we can handle it correctly. + new int {}; // expected-error {{}} +} |

