diff options
Diffstat (limited to 'test/Parser/MicrosoftExtensions.cpp')
-rw-r--r-- | test/Parser/MicrosoftExtensions.cpp | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/test/Parser/MicrosoftExtensions.cpp b/test/Parser/MicrosoftExtensions.cpp index 6219e29f59..d1e8866929 100644 --- a/test/Parser/MicrosoftExtensions.cpp +++ b/test/Parser/MicrosoftExtensions.cpp @@ -171,19 +171,27 @@ void redundant_typename() { int k = typename var;// expected-error {{expected a qualified name after 'typename'}} } - -__interface MicrosoftInterface; -__interface MicrosoftInterface { - virtual void foo1() = 0; - virtual void foo2() = 0; -}; - -void interface_test() { - MicrosoftInterface* a; - a->foo1(); -} - -__int64 x7 = __int64(0); +
+__interface MicrosoftInterface;
+__interface MicrosoftInterface {
+ void foo1() = 0;
+ virtual void foo2() = 0;
+};
+
+__interface MicrosoftDerivedInterface : public MicrosoftInterface {
+ void foo1();
+ void foo2() override;
+ void foo3();
+};
+
+void interface_test() {
+ MicrosoftInterface* a;
+ a->foo1();
+ MicrosoftDerivedInterface* b;
+ b->foo2();
+}
+
+__int64 x7 = __int64(0);
namespace If_exists_test { |