comparison gcc/testsuite/gcc.dg/lazy-ptr-test.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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" } } */