summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/bz10294.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.base/bz10294.c')
-rw-r--r--testsuite/systemtap.base/bz10294.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/bz10294.c b/testsuite/systemtap.base/bz10294.c
new file mode 100644
index 00000000..1ea9a0d9
--- /dev/null
+++ b/testsuite/systemtap.base/bz10294.c
@@ -0,0 +1,21 @@
+int func_a(int a)
+{
+ a = a + 1;
+ return a;
+}
+
+
+int func_b(int b)
+{
+ b = b + 2;
+ return b;
+}
+
+int main()
+{
+ int a;
+
+ a = func_a(1);
+ a = a + func_b(a);
+ return 0;
+}