Improved MSVC __interface support by adding first class support for it, instead of aliasing to "struct" which had some incorrect behaviour. Patch by David Robins.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163013 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/MicrosoftExtensions.cpp b/test/Parser/MicrosoftExtensions.cpp
index 6219e29..d1e8866 100644
--- a/test/Parser/MicrosoftExtensions.cpp
+++ b/test/Parser/MicrosoftExtensions.cpp
@@ -171,19 +171,27 @@
    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 {