aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr94179.c
blob: dfe27fe61d44a3cd8b451e0d31c48b9f6823f964 (plain)
1
2
3
4
5
6
7
8
9
/* PR c/94179 */

struct S { char c, d, e[64]; } a;

unsigned char *
foo (int b)
{
  return (unsigned char *)((char *)&a.e[b != 0] - (char *)&((struct S *)0)->d);
}