blob: 63f82e0f7aa76c68f945717f7da955fb87ce8d9a [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c99 %s
Chris Lattner22153252007-08-26 23:08:06 +00002
3int f (int z)
4{
John McCall45aa4552009-11-05 00:40:04 +00005 if (z > (int) sizeof (enum {a, b}))
Chris Lattner22153252007-08-26 23:08:06 +00006 return a;
7 return b; // expected-error{{use of undeclared identifier}}
8}