From 5eafdf0f9bfd9a3c5f93414ac16bb399b6da0b7f Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 24 Sep 2015 15:42:30 -0700 Subject: Move files up to match upstream source structure. To create an upstream-master branch later and keep track of upstream changes. * src/Android.mk file is deleted because ./Android.mk is identical and serves the same purpose. * ./Makefile.am is moved from old src/Makefile.am, and new src/Makefile.am is from old src/src/Makefile.am. Similarly, ./ChangeLog is moved from old src/ChangeLog, and new src/ChangeLog is from old src/src/ChangeLog. * Remove unnecessary files that were generated by autoconf or configure. Change-Id: Iafc67d1e80f9d7ad2a74bc851bf9ca9e87205336 --- tests/testfile_parameter_ref.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/testfile_parameter_ref.c (limited to 'tests/testfile_parameter_ref.c') diff --git a/tests/testfile_parameter_ref.c b/tests/testfile_parameter_ref.c new file mode 100644 index 00000000..7fe985f3 --- /dev/null +++ b/tests/testfile_parameter_ref.c @@ -0,0 +1,20 @@ +// gcc -g -O2 -o parameter_ref parameter_ref.c + +volatile int vv; + +/* Don't inline, but do allow clone to create specialized versions. */ +static __attribute__((noinline)) int +foo (int x, int y, int z) +{ + int a = x * 2; + int b = y * 2; + int c = z * 2; + vv++; + return x + z; +} + +int +main (int x, char **argv) +{ + return foo (x, 2, 3) + foo (x, 4, 3) + foo (x + 6, x, 3) + x; +} -- cgit v1.2.3