aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/CompoundStmtScope.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/CompoundStmtScope.c')
-rw-r--r--test/Parser/CompoundStmtScope.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Parser/CompoundStmtScope.c b/test/Parser/CompoundStmtScope.c
new file mode 100644
index 000000000000..6a404aa3a2c6
--- /dev/null
+++ b/test/Parser/CompoundStmtScope.c
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+int foo() {
+ {
+ typedef float X;
+ }
+ X Y; // expected-error {{use of undeclared identifier}}
+}