]> granicus.if.org Git - clang/commitdiff
Testcase for half of r142048.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Oct 2011 04:11:50 +0000 (04:11 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 15 Oct 2011 04:11:50 +0000 (04:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142053 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/cxx0x-in-cxx98.cpp

index 95ceafdfc5c08a28a9f8bb164c6863bd5ea8481c..e5f104168a82a85ea9f56ef8d5dc9db8f7b1bbdd 100644 (file)
@@ -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 {{}}
+}