diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-19 18:01:54 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-19 18:01:54 +0000 |
commit | 3a7ccce8faf93e8ad48cfdb1f685331b31c4621b (patch) | |
tree | 92c1666170014e9d1f804e9f4ae4f881f22c7b57 /gcc/testsuite/gcc.dg/lazy-ptr-test.c | |
parent | 819df3ff913bd5124aef350587e4bb2d2631c118 (diff) | |
download | gcc-3a7ccce8faf93e8ad48cfdb1f685331b31c4621b.tar.gz |
No darwin non-lazy-ptr for address calculatation when not needed.
OKed by Geoff Keating.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/lazy-ptr-test.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/lazy-ptr-test.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lazy-ptr-test.c b/gcc/testsuite/gcc.dg/lazy-ptr-test.c new file mode 100644 index 00000000000..da66b518ff0 --- /dev/null +++ b/gcc/testsuite/gcc.dg/lazy-ptr-test.c @@ -0,0 +1,18 @@ +/* { dg-do compile { target powerpc*-apple-darwin* } } */ +/* { dg-options "-S" } */ + +void f () __attribute__((weak_import)); + +typedef void PF (void); + +void f(void){}; + +PF* g (void) { return f; } + +int main() +{ + (*g())(); + return 0; +} + +/* { dg-final { scan-assembler "non_lazy_ptr" } } */ |