diff options
Diffstat (limited to 'test/SemaCXX/MicrosoftCompatibility.cpp')
-rw-r--r-- | test/SemaCXX/MicrosoftCompatibility.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaCXX/MicrosoftCompatibility.cpp b/test/SemaCXX/MicrosoftCompatibility.cpp index d095f6edc617..203a81011142 100644 --- a/test/SemaCXX/MicrosoftCompatibility.cpp +++ b/test/SemaCXX/MicrosoftCompatibility.cpp @@ -239,6 +239,15 @@ enum ENUM2 { ENUM2_c = 0x100000000 // expected-warning {{enumerator value is not representable in the underlying type 'int'}} }; +namespace NsEnumForwardDecl { + enum E *p; // expected-warning {{forward references to 'enum' types are a Microsoft extension}} + extern E e; +} +// Clang used to complain that NsEnumForwardDecl::E was undeclared below. +NsEnumForwardDecl::E NsEnumForwardDecl_e; +namespace NsEnumForwardDecl { + extern E e; +} namespace PR11791 { template<class _Ty> |