diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-07-31 19:54:53 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-07-31 19:54:53 +0200 |
commit | 793e611dc277b6943100a5f81274961d526f9b02 (patch) | |
tree | 60fbd5116cf8f5273c40457106b9c306e38edab7 /testsuite/systemtap.context/uprobe_stmt_num.c | |
parent | 6415dddecb81f59996e422e87e1d3da266d743e8 (diff) | |
download | systemtap-steved-793e611dc277b6943100a5f81274961d526f9b02.tar.gz systemtap-steved-793e611dc277b6943100a5f81274961d526f9b02.tar.xz systemtap-steved-793e611dc277b6943100a5f81274961d526f9b02.zip |
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.
Diffstat (limited to 'testsuite/systemtap.context/uprobe_stmt_num.c')
-rw-r--r-- | testsuite/systemtap.context/uprobe_stmt_num.c | 20 |
1 files changed, 20 insertions, 0 deletions
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); +} |