repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
attr-may-alias-2.c
blob
44ea92657294fba6b984fca13a52f530191f98cc
1
/* We used to reject this because types differentiating only in
2
TYPE_REF_CAN_ALIAS_ALL were deemed incompatible. */
3
/* { dg-do compile } */
4
5
struct
sockaddr
;
6
struct
sockaddr
*
f
(
void
);
7
8
struct
__attribute__
((
may_alias
))
sockaddr
{
int
j
; };
9
struct
sockaddr
*
10
f
(
void
)
11
{
12
return
13
#ifndef __cplusplus
14
(
void
*)
15
#endif
16
0
;
17
}