aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-06-19 23:58:27 +0000
committerNico Weber <nicolasweber@gmx.de>2012-06-19 23:58:27 +0000
commited36b2a80878c29603bdc89a7969253fb6446174 (patch)
treeb8877259848db620a295e178dac8fc22b732104e /test
parent8e083e71d48f7f4d6ef40c00531c2e14df745486 (diff)
Do a second lookup for type_info in the global namespace in microsoft mode. PR13153.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp b/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp
new file mode 100644
index 0000000000..d932b5dbbc
--- /dev/null
+++ b/test/SemaCXX/MicrosoftCompatibilityNoExceptions.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 %s -fsyntax-only -verify -fms-compatibility
+
+// PR13153
+namespace std {}
+class type_info {};
+void f() {
+ (void)typeid(int);
+}