2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c99 %s
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
int f (int z)
|
|
|
|
{
|
2009-11-05 17:18:09 +00:00
|
|
|
if (z > (int) sizeof (enum {a, b}))
|
2009-06-02 17:58:47 +00:00
|
|
|
return a;
|
|
|
|
return b; // expected-error{{use of undeclared identifier}}
|
|
|
|
}
|