// RUN: %clang_cc1 -fsyntax-only -verify %s
// Test checks that 'mode' attribute is handled correctly with enums, i. e. code
// 1. "typedef enum { A } __attribute__((mode(HI))) T;" is accepted,
// 2. "enum X __attribute__((mode(QI))) var;" forms a complete integer type.
// 3. "enum { A } __attribute__((mode(V4SI))) var;" is not accepted (vector mode).
typedef enum EnumType;
int