Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c99 %s |
Chris Lattner | 2215325 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 2 | |
3 | int f (int z) | ||||
4 | { | ||||
John McCall | 45aa455 | 2009-11-05 00:40:04 +0000 | [diff] [blame] | 5 | if (z > (int) sizeof (enum {a, b})) |
Chris Lattner | 2215325 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 6 | return a; |
7 | return b; // expected-error{{use of undeclared identifier}} | ||||
8 | } |