llvm-project/clang/test/Parser/CompoundStmtScope.c

9 lines
145 B
C
Raw Normal View History

// RUN: clang-cc -fsyntax-only -verify %s
2006-10-25 11:14:54 +08:00
int foo() {
{
typedef float X;
}
X Y; // expected-error {{use of undeclared identifier}}
2006-10-25 11:14:54 +08:00
}