summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/asm2.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/asm2.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.mike/asm2.C27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/asm2.C b/gcc/testsuite/g++.old-deja/g++.mike/asm2.C
new file mode 100755
index 0000000..59771d6
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.mike/asm2.C
@@ -0,0 +1,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");
+}