Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/pr56493.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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. */ | |
145 | 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 } } } } */ |