OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-17.C] - Rev 301

Go to most recent revision | Compare with Previous | Blame | View Log

// 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; }

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.