aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/nvptx/indirect_call.c
blob: 39992a7137b4529e9fa91f7836d18ed9b00f7ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2 -msoft-stack" } */
/* { dg-do run } */

int
f1 (int a)
{
  return a + 1;
}
  
int (*f2)(int) = f1;

int
main ()
{
  if (f2 (100) != 101)
    __builtin_abort();

  return 0;
}