Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c90 %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Chris Lattner | 2215325 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 3 | |
4 | int f (int z) | ||||
5 | { | ||||
John McCall | 45aa455 | 2009-11-05 00:40:04 +0000 | [diff] [blame] | 6 | if (z > (int) sizeof (enum {a, b})) |
Chris Lattner | 2215325 | 2007-08-26 23:08:06 +0000 | [diff] [blame] | 7 | return a; |
8 | return b; | ||||
9 | } |