Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / ipa-pta-1.c
blob1bf49974dac8b76606af18f19f830a0eb11e6a05
1 /* { dg-do compile { target { nonpic } } } */
2 /* { dg-options "-fipa-pta -fdump-ipa-pta2 -fno-ipa-icf" } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" "-fno-fat-lto-objects" } { "" } } */
5 struct X { char x; char y; };
7 char *q;
9 static void __attribute__((noinline))
10 bar (char *p)
12 q = p;
15 void test1 (char a1, char b, char c, char d, char e, char f, char g, char h)
17 char *p = &a1;
18 p++;
19 bar (p);
22 void test2 (struct X a2, char b, char c, char d, char e, char f, char g, char h)
24 char *p = &a2.x;
25 p++;
26 bar (p);
29 void test3 (struct X a3, char b, char c, char d, char e, char f, char g, char h)
31 char *p = &a3.y;
32 bar (p);
35 void test4 (int a4, char b, char c, char d, char e, char f, char g, char h)
37 char *p = (char *)&a4;
38 p++;
39 p++;
40 p++;
41 p++;
42 bar (p);
45 /* { dg-final { scan-ipa-dump "bar.arg0 = { test4.arg0 test3.arg0 test2.arg0 test1.arg0 }" "pta2" } } */