1 // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify -triple x86_64-apple-darwin %s
10 enum E : Z; // expected-error{{invalid underlying type}}
17 enum E : Z(); // expected-error{{integral constant expression must have integral or unscoped enumeration type, not 'Z'}}
32 enum WithUnderlying : unsigned { wu_value };
33 struct WithUnderlyingBitfield {
34 WithUnderlying wu : 3;
36 int want_unsigned(unsigned);
37 int want_unsigned(int) = delete;
38 int check_enum_bitfield_promotes_correctly = want_unsigned(wu.wu);