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