// RUN: %clang_cc1 -fsyntax-only -verify -Wassign-enum %s
// rdar://11824807
typedef enum CCTestEnum
CCTestEnum;
CCTestEnum test = 50; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}}
CCTestEnum test1 = -50; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}}
// Explicit cast should silence the warning.
static const CCTestEnum SilenceWithCast1 = 51; // expected-warning {{integer constant not in range of enumerated type 'CCTestEnum'}}
static const CCTestEnum SilenceWithCast2 = 51; // no-warning
static const CCTestEnum SilenceWithCast3 = 51; // no-warning
static const CCTestEnum SilenceWithCast4 = 51; // no-warning
void
CCTestEnum
;
enum Test2
// PR15069
typedef enum
T;
void
int