2 /* { dg-do compile } */
3 /* { dg-options "-O3 -g -fcompare-debug" } */
4 /* { dg-options "-O3 -g -fcompare-debug -march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 /* { dg-skip-if "no long pointers" { { ! ilp32 } && { ! lp64 } } } */
7 typedef struct { int t; } *T;
8 struct S1 { unsigned s1; };
9 struct S2 { struct S1 s2; };
10 struct S3 { unsigned s3; struct S2 **s4; };
11 struct S5 { struct S2 *s5; };
13 __extension__ typedef __INTPTR_TYPE__ ssize_t;
15 extern void fn0 (void) __attribute__ ((__noreturn__));
19 static inline __attribute__((always_inline)) int
20 fn1 (const struct S1 *x)
25 static inline __attribute__((always_inline)) int
26 fn2 (const struct S1 *x, unsigned y)
33 static inline __attribute__((always_inline)) int
36 return (x.s3 == fn1 (*x.s4 ? &(*x.s4)->s2 : 0));
39 static inline __attribute__((always_inline)) int
42 return fn2 (&(*x.s4)->s2, x.s3);
46 fn5 (struct S3 x, T *y)
50 *y = (T) (ssize_t) fn4 (x);