diff options
author | Elliott Hughes <enh@google.com> | 2015-02-25 16:51:55 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-25 16:51:55 +0000 |
commit | 412f6b917fc658c24dd7d624bb82bf1a1e791b95 (patch) | |
tree | a63e40b5dd9927bd04ec7427c8797975c2a71f85 /src/tests/testfile_implicit_pointer.c | |
parent | a969285f70219c5d35ee5aa8ceab0f532fc1e54d (diff) | |
parent | 7401a30e8b3a0de25d7e8a6b635fc33f45894118 (diff) | |
download | android_external_elfutils-412f6b917fc658c24dd7d624bb82bf1a1e791b95.tar.gz android_external_elfutils-412f6b917fc658c24dd7d624bb82bf1a1e791b95.tar.bz2 android_external_elfutils-412f6b917fc658c24dd7d624bb82bf1a1e791b95.zip |
am 7401a30e: am 36e62782: Merge "Upgrade to elfutils 0.161."
* commit '7401a30e8b3a0de25d7e8a6b635fc33f45894118':
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; +} |