summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx0x-in-cxx98.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx0x-in-cxx98.cpp')
-rw-r--r--test/Parser/cxx0x-in-cxx98.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Parser/cxx0x-in-cxx98.cpp b/test/Parser/cxx0x-in-cxx98.cpp
index 9e41a70..b4bda89 100644
--- a/test/Parser/cxx0x-in-cxx98.cpp
+++ b/test/Parser/cxx0x-in-cxx98.cpp
@@ -8,3 +8,16 @@ struct X {
};
}
+struct B {
+ virtual void f();
+ virtual void g();
+};
+struct D final : B { // expected-warning {{'final' keyword is a C++11 extension}}
+ virtual void f() override; // expected-warning {{'override' keyword is a C++11 extension}}
+ virtual void g() final; // expected-warning {{'final' keyword is a C++11 extension}}
+};
+
+void NewBracedInitList() {
+ // A warning on this would be sufficient once we can handle it correctly.
+ new int {}; // expected-error {{}}
+}
OpenPOWER on IntegriCloud