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