[Microsoft] If -fms-compatibility, then downgrade missing typename error to warning at function prototype scope.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141630 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/MicrosoftCompatibility.cpp b/test/SemaCXX/MicrosoftCompatibility.cpp
index 1370b7d..dfc47d6 100644
--- a/test/SemaCXX/MicrosoftCompatibility.cpp
+++ b/test/SemaCXX/MicrosoftCompatibility.cpp
@@ -126,12 +126,12 @@
 };

 

 template <class T>

-void function_missing_typename()

+void function_missing_typename(const T::Type param)// expected-warning {{missing 'typename' prior to dependent type name}}

 {

     const T::Type var = 2; // expected-warning {{missing 'typename' prior to dependent type name}}

 }

 

-template void function_missing_typename<D>();

+template void function_missing_typename<D>(const D::Type param);

 

 }