summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr17024-1.c
blob: d8bdf012b9dbb07febedf652dad7d877fd6b578b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/17024 */
/* { dg-do compile } */
/* { dg-options "-funsafe-math-optimizations" } */

#define MAX2(a,b) (((a)>(b)) ? (a) : (b))

void C(double);

void i(int k)
{
	double c[1];
	C(MAX2(0.,c[k]));
	return;
}