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
2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
globalalias-2.c
blob
ab6db292e6940fdc80bfe8138f3919f9941cc87e
1
/* { dg-require-alias "" } */
2
int
test2count
;
3
extern
void
abort
(
void
);
4
static
5
void
test
(
void
)
6
{
7
test2count
++;
8
}
9
__attribute__
((
weak
,
noinline
))
10
__attribute
((
alias
(
"test"
)))
11
void
test2
(
void
);
12
13
void
tt
()
14
{
15
int
prev
=
test2count
;
16
/* This call must bind locally. */
17
test
();
18
if
(
test2count
==
prev
)
19
abort
();
20
test2
();
21
}