aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx0x-in-cxx98.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-10-15 04:11:50 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-10-15 04:11:50 +0000
commit95fa252f180296c911d855660dcafd6bfee22180 (patch)
treef74e2c9d38a80fbc911943674abf6772d706f6a3 /test/Parser/cxx0x-in-cxx98.cpp
parent6a2ccc51d9b8357e1433e0029d544d95c5877a5c (diff)
Testcase for half of r142048.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142053 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx0x-in-cxx98.cpp')
-rw-r--r--test/Parser/cxx0x-in-cxx98.cpp5
1 files changed, 5 insertions, 0 deletions
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 {{}}
+}