// PR c++/41109, 41110, 41134 // { dg-options "-Wunused" } int memory_consumption(const int &t) { return sizeof(t); } int s; int g() { return memory_consumption(s); } template struct X { static const int s = 2; }; template int f() { const unsigned int dim = 2; return X::s; } template int f(); static int i; template int h() { return i; }