Daniel Dunbar | a45cf5b | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify --std=c99 %s |
Chris Lattner | 2dd1b72 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 2 | |
3 | int f (int z) | ||||
4 | { | ||||
John McCall | 644a418 | 2009-11-05 00:40:04 +0000 | [diff] [blame^] | 5 | if (z > (int) sizeof (enum {a, b})) |
Chris Lattner | 2dd1b72 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 6 | return a; |
7 | return b; // expected-error{{use of undeclared identifier}} | ||||
8 | } |