OSDN Git Service

gcc/ChangeLog:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.mike / asm2.C
1 // { dg-do run  }
2 // Compile with -S, there should be no references to
3 // LTRAMP in the output.
4
5 extern "C" int printf (const char *, ...);
6
7 void
8 sub2 (void (*func) ())
9 {
10   (*func) ();
11 }
12
13 int
14 main(void)
15 {
16   extern void sub (void);
17
18   sub2 (sub);
19 }
20
21 void
22 sub (void)
23 {
24   printf ("hello world\n");
25 }