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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20030717-1.c
blob
6a7f6de6f444d00923903187537000dca446cd95
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
extern
void
abort
(
void
);
5
6
int
zero
(
void
)
7
{
8
return
0
;
9
}
10
11
int
one
(
void
)
12
{
13
return
1
;
14
}
15
16
int
main
(
void
)
17
{
18
int
i
=
1
;
19
int
r
= (
i
?
one
:
zero
)();
20
if
(
r
!=
1
)
21
abort
();
22
return
0
;
23
}
24