summaryrefslogtreecommitdiffstats
path: root/test/Parser/namelookup-bug-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/namelookup-bug-2.c')
-rw-r--r--test/Parser/namelookup-bug-2.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Parser/namelookup-bug-2.c b/test/Parser/namelookup-bug-2.c
new file mode 100644
index 0000000..42298c3
--- /dev/null
+++ b/test/Parser/namelookup-bug-2.c
@@ -0,0 +1,14 @@
+// RUN: clang-cc -verify %s
+
+typedef int Object;
+
+struct Object {int i1; } *P;
+
+void foo() {
+ struct Object { int i2; } *X;
+ Object:
+ {
+ Object a;
+ }
+}
+
OpenPOWER on IntegriCloud