Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/pr56493.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
line wrap: on
line source
/* PR c++/56493 */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-gimple" } */ unsigned long long bar (void); int x; void foo (void) { x += bar (); } /* Verify we narrow the addition from unsigned long long to unsigned int type. */ /* { dg-final { scan-tree-dump " (\[a-zA-Z._0-9]*) = \\(unsigned int\\) \[^;\n\r]*;.* (\[a-zA-Z._0-9]*) = \\(unsigned int\\) \[^;\n\r]*;.* = \\1 \\+ \\2;" "gimple" { target { ilp32 || lp64 } } } } */