blob: 40814b95587b7f4b1a5ed1bfa0039f7cf830a3c7 [file] [log] [blame]
// PR c++/86190
// { dg-options "-Wsign-conversion -Wsign-compare" }
typedef unsigned long size_t;
struct vector {
typedef size_t size_type;
size_type size();
};
bool func(vector vec, int var)
{
return vec.size() < static_cast<size_t>(var); // { dg-bogus "may change" }
}