Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/lto/20080917_0.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-lto-do assemble } |
2 // { dg-lto-options {{-O2 -flto -funsigned-char}} } | |
3 int | |
4 foo (char *s, int flag) | |
5 { | |
6 for (;;) | |
7 { | |
8 unsigned char c; | |
9 if (flag) | |
10 c = *s; | |
11 else | |
12 c = *s; | |
13 return c; | |
14 } | |
15 } | |
16 | |
17 int | |
18 baz (const char *s, int flag) | |
19 { | |
20 for (;;) | |
21 { | |
22 unsigned char c; | |
23 if (flag) | |
24 c = *s; | |
25 else | |
26 c = *s; | |
27 return c; | |
28 } | |
29 } |