blob: 217bb4b77fe334db6d069b4f2a8c6d12a0cbe4c9 [file] [log] [blame]
// 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 <int> struct X { static const int s = 2; };
template <typename T> int f() {
const unsigned int dim = 2;
return X<dim>::s;
}
template int f<int>();
static int i;
template <typename> int h() { return i; }