]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
handy test wrapper
authorCerion Armour-Brown <cerion@valgrind.org>
Thu, 17 Mar 2005 13:01:08 +0000 (13:01 +0000)
committerCerion Armour-Brown <cerion@valgrind.org>
Thu, 17 Mar 2005 13:01:08 +0000 (13:01 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1050

VEX/switchback/test_simple.c [new file with mode: 0644]

diff --git a/VEX/switchback/test_simple.c b/VEX/switchback/test_simple.c
new file mode 100644 (file)
index 0000000..9a7756a
--- /dev/null
@@ -0,0 +1,12 @@
+
+
+static void bar ( void*(*service)(int,int) )
+{
+   __asm__ __volatile__ ("addi         17, 14, 5");
+}
+
+void entry ( void*(*service)(int,int) )
+{
+  bar(service);
+  service(0,0);
+}