PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / enum-mode-2.c
blob8dba3c53c69e6a91cc836b28b9fdd4a551aabd53
1 /* PR c/51147 - attribute((mode(byte))) on an enum generates wrong code */
3 /* { dg-do compile } */
4 /* { dg-additional-options "-O2 -fdump-tree-optimized" } */
6 enum _eq_bool
8 false,
9 true
10 } __attribute__((mode (byte)));
12 typedef enum _eq_bool bool;
14 bool foo (void);
15 bool bar (void);
17 bool test (void)
19 return foo () || bar ();
22 /* { dg-final { scan-tree-dump-times "foo|bar" 2 "optimized" } } */