summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr67028.c
blob: b42fb8110ebb9df5c71bd4ddfdbe05a1806d6c76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run } */
/* { dg-options "-O3" } */

short c = 0;

int __attribute__ ((noinline)) f(void)
{
	int d = 5;
	signed char e = (c != 1) * -2;
	int a = (unsigned short)e > d;

	return a;
}

int main(void)
{
	if (!f())
		__builtin_abort();

	return 0;
}