aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/asm2.C
blob: 59771d6c6a3e3b2cf31d0a4f3eaca701b08a778c (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
26
27
// Compile with -S, there should be no references to
// LTRAMP in the output.

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

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

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

  sub2 (sub);
}

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