Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr52318.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 tree-optimization/52318 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } */ | |
4 | |
5 int c; | |
6 char *p; | |
7 | |
8 void | |
9 foo (int i) | |
10 { | |
11 char a[2]; | |
12 char b[20]; | |
13 p = __builtin___stpcpy_chk (a, "", 2); | |
14 p = __builtin___stpcpy_chk (&b[16], i ? "e" : "jkl", 4); | |
15 if (c) | |
16 foo (i); | |
17 } |