Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr27758.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 /* PR target/27758 */ |
2 /* { dg-do run { target fpic } } */ | |
3 /* { dg-options "-O0 -fpic" } */ | |
4 | |
5 typedef int (*fn) (void); | |
6 | |
7 static inline int | |
8 foo (void) | |
9 { | |
10 return 1; | |
11 } | |
12 | |
13 fn | |
14 test (void) | |
15 { | |
16 return foo; | |
17 } | |
18 | |
19 int | |
20 main (void) | |
21 { | |
22 fn f = test (); | |
23 return f () != 1; | |
24 } |