Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/pr26421.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 "-O2 -fdump-tree-optimized" } */ | |
3 | |
4 typedef struct { | |
5 int i; | |
6 int j; | |
7 int k; | |
8 } Foo; | |
9 | |
10 void bar(Foo*); | |
11 int foo(void) | |
12 { | |
13 Foo a; | |
14 a.i = 1; | |
15 bar(&a); | |
16 return a.i; | |
17 } | |
18 | |
19 /* Verify the call clobbers all of a. */ | |
20 | |
21 /* { dg-final { scan-tree-dump-not "return 1;" "optimized" } } */ |