Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr53358.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 /* PR target/53358 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2" } */ | |
4 /* { dg-additional-options "-fpic" { target fpic } } */ | |
5 /* { dg-additional-options "-mtune=pentium4" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ | |
6 | |
7 struct S { unsigned char s, t[17]; }; | |
8 int bar (void); | |
9 | |
10 void | |
11 foo (struct S *x) | |
12 { | |
13 unsigned char i, z; | |
14 if (bar ()) | |
15 { | |
16 z = bar (); | |
17 bar (); | |
18 x->s += z; | |
19 for (i = 0; i < x->s; i++) | |
20 x->t[i] = bar (); | |
21 } | |
22 } |