ldbl128_14_struct_return.c (302B)
1 struct Pair { 2 long double a; 3 long double b; 4 }; 5 6 static struct Pair make_pair(long double a, long double b) { 7 struct Pair p; 8 p.a = a; 9 p.b = b; 10 return p; 11 } 12 13 int test_main(void) { 14 if (__LDBL_MANT_DIG__ != 113) return 0; 15 struct Pair p = make_pair(14.0L, 9.0L); 16 return (int)(p.a + p.b); 17 }