Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/lazy-ptr-test.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile { target powerpc*-apple-darwin* } } */ |
2 /* { dg-options "-S" } */ | |
3 | |
4 void f () __attribute__((weak_import)); | |
5 | |
6 typedef void PF (void); | |
7 | |
8 void f(void){}; | |
9 | |
10 PF* g (void) { return f; } | |
11 | |
12 int main() | |
13 { | |
14 (*g())(); | |
15 return 0; | |
16 } | |
17 | |
18 /* { dg-final { scan-assembler "non_lazy_ptr" } } */ |