YouCompleteMe/cpp/llvm/tools/clang/test/Parser/CompoundStmtScope.c

9 lines
148 B
C
Raw Normal View History

// RUN: %clang_cc1 -fsyntax-only -verify %s
void foo() {
{
typedef float X;
}
X Y; // expected-error {{use of undeclared identifier}}
}