Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-87.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-87.c Mon May 25 07:50:57 2020 +0900 @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-fre1" } */ + +unsigned int foo(unsigned int x, int *p) +{ + unsigned int src = x; + unsigned int dst; + *p = sizeof (unsigned int); + __builtin___memcpy_chk (&dst, &src, *p, 16); + return dst; +} + +/* { dg-final { scan-tree-dump "return x" "fre1" } } */