Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/compile/pr84383.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* PR tree-optimization/84383 */ | |
2 | |
3 struct S { char *s; }; | |
4 void bar (struct S *); | |
5 | |
6 void | |
7 foo (int a, char *b) | |
8 { | |
9 struct S c[4]; | |
10 bar (c); | |
11 __builtin_strncpy (c[a].s, b, 32); | |
12 c[a].s[31] = '\0'; | |
13 bar (c); | |
14 } |