PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20140828-1.c
blob5eeb8e01aed977b3232bf3df4cac3391f6ed60e3
1 short *f(short *a, int b, int *d) __attribute__((noinline,noclone));
3 short *f(short *a, int b, int *d)
5 short c = *a;
6 a++;
7 c = b << c;
8 *d = c;
9 return a;
12 int main(void)
14 int d;
15 short a[2];
16 a[0] = 0;
17 if (f(a, 1, &d) != &a[1])
18 __builtin_abort ();
19 if (d != 1)
20 __builtin_abort ();
21 return 0;