summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr15791-5.c
blob: 69fcf7ea3158f25a6e2def7f83bdcad76f4779e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */

int foo(int i, int j)
{
	char g[16];
	if (&g[i] == &g[j])
		return 1;
	return 0;
}

/* { dg-final { scan-tree-dump-times "i == j" 1 "gimple" } } */