[cfe-commits] r142053 - /cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp

Richard Smith richard-llvm at metafoo.co.uk
Fri Oct 14 21:11:50 PDT 2011


Author: rsmith
Date: Fri Oct 14 23:11:50 2011
New Revision: 142053

URL: http://llvm.org/viewvc/llvm-project?rev=142053&view=rev
Log:
Testcase for half of r142048.

Modified:
    cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp

Modified: cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp?rev=142053&r1=142052&r2=142053&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp (original)
+++ cfe/trunk/test/Parser/cxx0x-in-cxx98.cpp Fri Oct 14 23:11:50 2011
@@ -16,3 +16,8 @@
   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 {{}}
+}





More information about the cfe-commits mailing list