Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
alias-2.c
blob: 8bc5473ed35f5e35d0359144ff9f8c98a5019ed1 [
file
] [
log
] [
blame
]
/* { dg-require-alias "" } */
/* { dg-skip-if "BSS alias" { powerpc-ibm-aix* } } */
int
a
[
10
]={};
extern
int
b
[
10
]
__attribute__
((
alias
(
"a"
)));
int
off
;
int
main
(
void
)
{
b
[
off
]=
1
;
a
[
off
]=
2
;
if
(
b
[
off
]!=
2
)
__builtin_abort
();
return
0
;
}