Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/asm2.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |