1*c85f09ccSJohn Levon enum e { ZERO, ONE, TWO }; 2*c85f09ccSJohn Levon 3*c85f09ccSJohn Levon struct s { 4*c85f09ccSJohn Levon enum e __attribute__ ((mode(__byte__))) b; 5*c85f09ccSJohn Levon enum e __attribute__ ((mode(__word__))) w; 6*c85f09ccSJohn Levon enum e __attribute__ ((mode(__TI__))) t; 7*c85f09ccSJohn Levon }; 8*c85f09ccSJohn Levon 9*c85f09ccSJohn Levon static struct s s; 10*c85f09ccSJohn Levon 11*c85f09ccSJohn Levon _Static_assert(sizeof(s.b) == 1, ""); 12*c85f09ccSJohn Levon _Static_assert(sizeof(s.w) == sizeof(long), ""); 13*c85f09ccSJohn Levon _Static_assert(sizeof(s.t) == sizeof(long long), ""); 14*c85f09ccSJohn Levon 15*c85f09ccSJohn Levon /* 16*c85f09ccSJohn Levon * check-name: enum+mode 17*c85f09ccSJohn Levon * check-known-to-fail 18*c85f09ccSJohn Levon */ 19