diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-05 06:38:18 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-05 06:38:18 +0000 |
commit | ab1b1dcea71c1957490037c7f7088cfbd0512349 (patch) | |
tree | 661a31c9574e1c094402ed88bf289505bc447501 /clang/test/SemaCXX/MicrosoftCompatibility.cpp | |
parent | 34db6523f350a082645b82c6d622dc249140d0f0 (diff) | |
download | bcm5719-llvm-ab1b1dcea71c1957490037c7f7088cfbd0512349.tar.gz bcm5719-llvm-ab1b1dcea71c1957490037c7f7088cfbd0512349.zip |
Pre-declare '::type_info' in MicrosoftMode only, not MicrosoftExt
It was previously enabled in both but should only have been part of the drop-in
quirks mode that is 'MicrosoftMode' given that it's only useful for
compatibility with the Microsoft headers/runtime.
llvm-svn: 198548
Diffstat (limited to 'clang/test/SemaCXX/MicrosoftCompatibility.cpp')
-rw-r--r-- | clang/test/SemaCXX/MicrosoftCompatibility.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/MicrosoftCompatibility.cpp b/clang/test/SemaCXX/MicrosoftCompatibility.cpp index 05037ac6a0d..3097b7da107 100644 --- a/clang/test/SemaCXX/MicrosoftCompatibility.cpp +++ b/clang/test/SemaCXX/MicrosoftCompatibility.cpp @@ -21,6 +21,11 @@ void test() } +namespace ms_predefined_types { + // ::type_info is predeclared with forward class declartion + void f(const type_info &a); +} + namespace ms_protected_scope { struct C { C(); }; |