diff options
author | Elliott Hughes <enh@google.com> | 2015-02-25 17:00:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-25 17:00:18 +0000 |
commit | a963009a0b9d502ffe81e79c7c3b45b3cf58b044 (patch) | |
tree | a63e40b5dd9927bd04ec7427c8797975c2a71f85 /src/tests/testfile_implicit_pointer.c | |
parent | 46a0b252322932680dbaa86a42944fb822af924d (diff) | |
parent | 412f6b917fc658c24dd7d624bb82bf1a1e791b95 (diff) | |
download | android_external_elfutils-a963009a0b9d502ffe81e79c7c3b45b3cf58b044.tar.gz android_external_elfutils-a963009a0b9d502ffe81e79c7c3b45b3cf58b044.tar.bz2 android_external_elfutils-a963009a0b9d502ffe81e79c7c3b45b3cf58b044.zip |
am 412f6b91: am 7401a30e: am 36e62782: Merge "Upgrade to elfutils 0.161."
* commit '412f6b917fc658c24dd7d624bb82bf1a1e791b95':
Upgrade to elfutils 0.161.
Diffstat (limited to 'src/tests/testfile_implicit_pointer.c')
-rw-r--r-- | src/tests/testfile_implicit_pointer.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tests/testfile_implicit_pointer.c b/src/tests/testfile_implicit_pointer.c new file mode 100644 index 00000000..d7e28a0e --- /dev/null +++ b/src/tests/testfile_implicit_pointer.c @@ -0,0 +1,12 @@ +// gcc -g -O2 -o implicit_pointer implicit_pointer.c + +static __attribute__((noinline, noclone)) int foo (int i) +{ + int *p = &i; + return *p; +} + +int main (void) +{ + return foo (23) - 23; +} |