2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2006-10-25 11:14:54 +08:00
|
|
|
|
2009-07-22 08:43:08 +08:00
|
|
|
void foo() {
|
2006-10-25 11:14:54 +08:00
|
|
|
{
|
|
|
|
typedef float X;
|
|
|
|
}
|
2007-06-27 12:30:12 +08:00
|
|
|
X Y; // expected-error {{use of undeclared identifier}}
|
2006-10-25 11:14:54 +08:00
|
|
|
}
|