summaryrefslogtreecommitdiffstats
path: root/src/tests/testfile_entry_value.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/testfile_entry_value.c')
-rw-r--r--src/tests/testfile_entry_value.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/testfile_entry_value.c b/src/tests/testfile_entry_value.c
new file mode 100644
index 00000000..d2f232b2
--- /dev/null
+++ b/src/tests/testfile_entry_value.c
@@ -0,0 +1,19 @@
+// gcc -g -O2 -o entry_value entry_value.c
+int __attribute__((noinline, noclone)) foo (int x, int y)
+{
+ return x + y;
+}
+
+int __attribute__((noinline, noclone)) bar (int x, int y)
+{
+ int z;
+ z = foo (x, y);
+ z += foo (y, x);
+ return z;
+}
+
+int
+main (int argc, char **argv)
+{
+ return bar (argc + 1, argc - 1);
+}