summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/asm2.C
blob: 62ae862356443efbad5334ea2924eea9175dc3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do run  }
// Compile with -S, there should be no references to
// LTRAMP in the output.

extern "C" int printf (const char *, ...);

void
sub2 (void (*func) ())
{
  (*func) ();
}

int
main(void)
{
  extern void sub (void);

  sub2 (sub);
}

void
sub (void)
{
  printf ("hello world\n");
}