c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr88775-1.c
blob779b2b7830054b942e7fe298cb7ecb386350232a
1 /* PR tree-optimization/88775 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-final { scan-tree-dump-times "return 1;" 10 "optimized" } } */
6 int a[64] = {};
7 int b[64] = {};
9 int
10 f1 (void)
12 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[2];
15 int
16 f2 (void)
18 return (__UINTPTR_TYPE__) &a[2] != (__UINTPTR_TYPE__) &b[10];
21 int
22 f3 (void)
24 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &b[0];
27 int
28 f4 (void)
30 return (__UINTPTR_TYPE__) &a[64] != (__UINTPTR_TYPE__) &b[64];
33 int
34 f5 (void)
36 int c[64] = {};
37 return (__UINTPTR_TYPE__) &a[0] != (__UINTPTR_TYPE__) &c[64];
40 int
41 f6 (void)
43 int c[64] = {};
44 return (__UINTPTR_TYPE__) &b[64] != (__UINTPTR_TYPE__) &c[0];
47 int
48 f7 (void)
50 int c[64] = {}, d[64] = {};
51 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[2];
54 int
55 f8 (void)
57 int c[64] = {}, d[64] = {};
58 return (__UINTPTR_TYPE__) &c[2] != (__UINTPTR_TYPE__) &d[10];
61 int
62 f9 (void)
64 int c[64] = {}, d[64] = {};
65 return (__UINTPTR_TYPE__) &c[0] != (__UINTPTR_TYPE__) &d[0];
68 int
69 f10 (void)
71 int c[64] = {}, d[64] = {};
72 return (__UINTPTR_TYPE__) &c[64] != (__UINTPTR_TYPE__) &d[64];