1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc // PR7477 5*f4a2713aSLionel Sambuc enum __attribute__((packed)) E { 6*f4a2713aSLionel Sambuc Ea, Eb, Ec, Ed 7*f4a2713aSLionel Sambuc }; 8*f4a2713aSLionel Sambuc test_E(enum E e)9*f4a2713aSLionel Sambucvoid test_E(enum E e) { 10*f4a2713aSLionel Sambuc switch (e) { 11*f4a2713aSLionel Sambuc case Ea: 12*f4a2713aSLionel Sambuc case Eb: 13*f4a2713aSLionel Sambuc case Ec: 14*f4a2713aSLionel Sambuc case Ed: 15*f4a2713aSLionel Sambuc break; 16*f4a2713aSLionel Sambuc } 17*f4a2713aSLionel Sambuc } 18