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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr27184.c
blob
cfb6ed2a8a6dc2c3f1878358053e505633f0703e
1
/* Copyright 2006 Free Software Foundation */
2
3
/* Make sure a and a1 alias each other.
4
Incomplete array types used to not be unified, which broke aliasing. */
5
6
/* { dg-do run } */
7
8
typedef
long
atype
[];
9
typedef
long
atype1
[];
10
int
NumSift
(
atype
*
a
,
atype1
*
a1
)
11
{
12
(*
a
)[
0
] =
0
;
13
(*
a1
)[
0
] =
1
;
14
return
(*
a
)[
0
];
15
}
16
int
main
(
void
)
17
{
18
long
a
[
2
];
19
if
(!
NumSift
(&
a
, &
a
))
20
__builtin_abort
();
21
return
0
;
22
}