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
[nvptx] Add support for CUDA 9
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
nvptx
/
indirect_call.c
blob
39992a7137b4529e9fa91f7836d18ed9b00f7ac4
1
/* { dg-options "-O2 -msoft-stack" } */
2
/* { dg-do run } */
3
4
int
5
f1
(
int
a
)
6
{
7
return
a
+
1
;
8
}
9
10
int
(*
f2
)(
int
) =
f1
;
11
12
int
13
main
()
14
{
15
if
(
f2
(
100
) !=
101
)
16
__builtin_abort
();
17
18
return
0
;
19
}