annotate gcc/testsuite/g++.dg/other/vrp1.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do compile }
kono
parents:
diff changeset
2 // { dg-options "-O2" }
kono
parents:
diff changeset
3 // This caused a crash in VRP because TREE_OVERFLOW was set for MIN.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 template<long long MIN>
kono
parents:
diff changeset
6 long long mod (long long l, long long r)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 if (l == MIN && r == -1)
kono
parents:
diff changeset
9 return 0LL;
kono
parents:
diff changeset
10 return l % r;
kono
parents:
diff changeset
11 }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
12 template long long mod<-0x8000000000000000LL> (long long, long long); // { dg-error "template-id" "" { target { c++11 } } }