Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/ipa/ipa-icf-18.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-icf-optimized" } */ __attribute__ ((noinline)) int foo(int x) { int c = x; if (x > 10) c += 2; else c -= 3; return c; } __attribute__ ((noinline)) int bar(int y) { int d = y; if (y > 10) d += 2; else d -= 3; return d; } int main() { return 0; } /* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf" } } */ /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf" } } */