diff options
author | Chih-hung Hsieh <chh@google.com> | 2015-09-25 14:51:48 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-09-25 14:51:48 +0000 |
commit | b0121c5547604527aaeea297b54047cd14b234df (patch) | |
tree | 7d9031ee3d5796de4a1825892fc6e04ba6e36ae2 /tests/testfile_entry_value.c | |
parent | d03895cf5f8b77c6a85abcd84ea0d80ff56be846 (diff) | |
parent | 5eafdf0f9bfd9a3c5f93414ac16bb399b6da0b7f (diff) | |
download | android_external_elfutils-b0121c5547604527aaeea297b54047cd14b234df.tar.gz android_external_elfutils-b0121c5547604527aaeea297b54047cd14b234df.tar.bz2 android_external_elfutils-b0121c5547604527aaeea297b54047cd14b234df.zip |
Merge "Move files up to match upstream source structure."
Diffstat (limited to 'tests/testfile_entry_value.c')
-rw-r--r-- | tests/testfile_entry_value.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/testfile_entry_value.c b/tests/testfile_entry_value.c new file mode 100644 index 00000000..d2f232b2 --- /dev/null +++ b/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); +} |