From 793e611dc277b6943100a5f81274961d526f9b02 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 31 Jul 2009 19:54:53 +0200 Subject: Add testcase for PR10458, PR10459 and PR10454. Last test currently disabled because PR10454 is still open. * testsuite/systemtap.context/uprobe_stmt_num.exp: New file. * testsuite/systemtap.context/uprobe_stmt_num.stp: Likewise. * testsuite/systemtap.context/uprobe_stmt_num.c: Likewise. --- testsuite/systemtap.context/uprobe_stmt_num.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testsuite/systemtap.context/uprobe_stmt_num.c (limited to 'testsuite/systemtap.context/uprobe_stmt_num.c') diff --git a/testsuite/systemtap.context/uprobe_stmt_num.c b/testsuite/systemtap.context/uprobe_stmt_num.c new file mode 100644 index 00000000..887e572a --- /dev/null +++ b/testsuite/systemtap.context/uprobe_stmt_num.c @@ -0,0 +1,20 @@ +static int +func2 (int x, int y) +{ + return x + y; +} + +static int +func (int arg) +{ + int x = 16; + int y = arg - x; + int z = func2(x, y); + return x + y + z; +} + +int +main (int argc, char *argv[], char *envp[]) +{ + return func(42); +} -- cgit