Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr45144.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ /* { dg-require-effective-target int32plus } */ void baz (unsigned); extern unsigned buf[]; struct A { unsigned a1:10; unsigned a2:3; unsigned:19; }; union TMP { struct A a; unsigned int b; }; static unsigned foo (struct A *p) { union TMP t; struct A x; x = *p; t.a = x; return t.b; } void bar (unsigned orig, unsigned *new) { struct A a; union TMP s; s.b = orig; a = s.a; if (a.a1) baz (a.a2); *new = foo (&a); } /* { dg-final { scan-tree-dump-not "unnamed-unsigned:19" "optimized"} } */