Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/pr39394.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 tree-optimization/39394 */ |
2 | |
3 char *p; | |
4 int x; | |
5 | |
6 static inline void | |
7 f1 (int n) | |
8 { | |
9 asm volatile ("" : "=m" (*(struct { char x[n]; } *) p)); | |
10 } | |
11 | |
12 static inline void | |
13 f2 (void) | |
14 { | |
15 x ? f1 (1) : f1 (2); | |
16 } | |
17 | |
18 static inline void | |
19 f3 (void) | |
20 { | |
21 f2 (); | |
22 } | |
23 | |
24 void | |
25 f4 (void) | |
26 { | |
27 f3 (); | |
28 } |