blob: 8dba3c53c69e6a91cc836b28b9fdd4a551aabd53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* PR c/51147 - attribute((mode(byte))) on an enum generates wrong code */
/* { dg-do compile } */
/* { dg-additional-options "-O2 -fdump-tree-optimized" } */
enum _eq_bool
{
false,
true
} __attribute__((mode (byte)));
typedef enum _eq_bool bool;
bool foo (void);
bool bar (void);
bool test (void)
{
return foo () || bar ();
}
/* { dg-final { scan-tree-dump-times "foo|bar" 2 "optimized" } } */
|