From: Richard Smith Date: Sat, 15 Oct 2011 04:11:50 +0000 (+0000) Subject: Testcase for half of r142048. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95fa252f180296c911d855660dcafd6bfee22180;p=clang Testcase for half of r142048. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142053 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Parser/cxx0x-in-cxx98.cpp b/test/Parser/cxx0x-in-cxx98.cpp index 95ceafdfc5..e5f104168a 100644 --- a/test/Parser/cxx0x-in-cxx98.cpp +++ b/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 {{}} +}