* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / attr-may-alias-2.c
blob44ea92657294fba6b984fca13a52f530191f98cc
1 /* We used to reject this because types differentiating only in
2 TYPE_REF_CAN_ALIAS_ALL were deemed incompatible. */
3 /* { dg-do compile } */
5 struct sockaddr;
6 struct sockaddr *f (void);
8 struct __attribute__((may_alias)) sockaddr { int j; };
9 struct sockaddr *
10 f (void)
12 return
13 #ifndef __cplusplus
14 (void *)
15 #endif