Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 2 | |
3 | int foo() { | ||||
4 | { | ||||
5 | typedef float X; | ||||
6 | } | ||||
7 | X Y; // expected-error {{use of undeclared identifier}} | ||||
8 | } |