Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/tree-ssa/pr87008.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ extern void dontcallthis(); struct A { long a, b; }; struct B : A {}; template<class T>void cp(T&a,T const&b){a=b;} long f(B x){ B y; cp<A>(y,x); B z; cp<A>(z,x); if (y.a - z.a) dontcallthis (); return 0; } /* { dg-final { scan-tree-dump-not "dontcallthis" "optimized" } } */