Mercurial > hg > CbC > CbC_gcc
comparison 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 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* PR c++/56493 */ | |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-O2 -fdump-tree-gimple" } */ | |
4 | |
5 unsigned long long bar (void); | |
6 int x; | |
7 | |
8 void | |
9 foo (void) | |
10 { | |
11 x += bar (); | |
12 } | |
13 | |
14 /* Verify we narrow the addition from unsigned long long to unsigned int type. */ | |
15 /* { 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 } } } } */ |