Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / sso-12.c
blob3bed280e1734a0b83771adc16c58620f642d12ac
1 /* Test scalar_storage_order attribute and pointer fields */
3 /* { dg-do run } */
4 /* { dg-options "-Wno-pedantic" } */
6 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
7 struct __attribute__((scalar_storage_order("big-endian"))) Rec
9 int *p;
11 #else
12 struct __attribute__((scalar_storage_order("little-endian"))) Rec
14 int *p;
16 #endif
18 int main (int argc)
20 struct Rec r = { &argc };
21 int *p = &argc;
23 if (__builtin_memcmp (&r.p, &p, sizeof (int *)) != 0)
24 __builtin_abort ();
26 return 0;