repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
ld
/
testsuite
/
ld-plugin
/
pr15323a.c
blob
9c38948f8d4cc29074ad58ec46c91a2efaed873c
1
#include <stdio.h>
2
3
int
x
;
4
int
y
;
5
6
__attribute__
((
weak
))
7
void
foobar
(
void
) {
y
++;
x
++; }
8
9
int
main
(
void
)
10
{
11
foobar
();
12
if
(
y
==
0
)
13
{
14
if
(
x
== -
1
)
15
printf
(
"OK
\n
"
);
16
}
17
else
18
{
19
if
(
x
==
1
)
20
printf
(
"OK
\n
"
);
21
}
22
return
0
;
23
}