Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/20031106-5.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O1 -fdump-tree-optimized" } */ | |
3 | |
4 extern void link_error (void); | |
5 | |
6 /* Check for cprop on different fields of same type structs. */ | |
7 | |
8 struct s | |
9 { | |
10 char d; | |
11 int a, b; | |
12 double m; | |
13 }; | |
14 | |
15 void foo2 (struct s* r, struct s* p) | |
16 { | |
17 r->a = 0; | |
18 p->b = 1; | |
19 r->a++; | |
20 p->b++; | |
21 if (r->a != 1) | |
22 link_error (); | |
23 if (p->b != 2) | |
24 link_error (); | |
25 } | |
26 | |
27 /* There should be no link_error calls. */ | |
28 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */ |