blob: 01f691f287803d8b6ee9ffd3b0e5992b27323763 [file] [log] [blame]
// PR c++/94938
template <typename T, int N> int
foo (T t, int i)
{
int m1 = 10 / t;
int m2 = 10 / i;
// People don't want to see warnings for type- or value-dependent
// expressions.
int m3 = 10 / (sizeof(T) - sizeof(int)); // { dg-bogus "division by" }
int m4 = 10 / N; // { dg-bogus "division by" }
return m1 + m2 + m3 + m4;
}
void
f ()
{
foo<int, 0>(0, 0);
}