blob: 799a0c858f20026d3d01a6e102c2862bbaf7efee [file] [log] [blame]
/* { dg-do compile } */
/* PR c/104822 */
#include <stddef.h>
struct Sb {
int i;
} __attribute__((scalar_storage_order("big-endian")));
struct Sl {
int i;
} __attribute__((scalar_storage_order("little-endian")));
/* Neither of these should warn about incompatible scalar storage order
as NULL pointers are compatiable with both endian. */
struct Sb *pb = NULL; /* { dg-bogus "" } */
struct Sl *pl = NULL; /* { dg-bogus "" } */