Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/other/vrp1.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // { dg-do compile } | |
2 // { dg-options "-O2" } | |
3 // This caused a crash in VRP because TREE_OVERFLOW was set for MIN. | |
4 | |
5 template<long long MIN> | |
6 long long mod (long long l, long long r) | |
7 { | |
8 if (l == MIN && r == -1) | |
9 return 0LL; | |
10 return l % r; | |
11 } | |
12 template long long mod<-0x8000000000000000LL> (long long, long long); |