Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / sso-19.c
blob6cf848dc2cfcc3afc05a401b8920a3cda73e0dba
1 /* { dg-do compile } */
2 /* { dg-options "-std=c23" } */
3 /* PR c/104822 */
5 #include <stddef.h>
7 struct Sb {
8 int i;
9 } __attribute__((scalar_storage_order("big-endian")));
10 struct Sl {
11 int i;
12 } __attribute__((scalar_storage_order("little-endian")));
14 /* Neither of these should warn about incompatible scalar storage order
15 as NULL pointers are compatiable with both endian. */
16 struct Sb *pb = nullptr; /* { dg-bogus "" } */
17 struct Sl *pl = nullptr; /* { dg-bogus "" } */