Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/writeonly.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ static struct a {int magic1,b;} a; volatile int magic2; static struct b {int a,b,c,d,e,f;} magic3; struct b foo(); void t() { a.magic1 = 1; magic2 = 1; magic3 = foo(); } /* { dg-final { scan-tree-dump-not "magic1" "optimized"} } */ /* { dg-final { scan-tree-dump-not "magic3" "optimized"} } */ /* { dg-final { scan-tree-dump "magic2" "optimized"} } */ /* { dg-final { scan-tree-dump "foo" "optimized"} } */