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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-17.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/41109, 41110, 41134
2
// { dg-options "-Wunused" }
3
 
4
int memory_consumption(const int &t) { return sizeof(t); }
5
 
6
int s;
7
int g() { return memory_consumption(s); }
8
 
9
template  struct X { static const int s = 2; };
10
 
11
template  int f() {
12
  const unsigned int dim = 2;
13
  return X::s;
14
}
15
 
16
template int f();
17
 
18
static int i;
19
template  int h() { return i; }

powered by: WebSVN 2.1.0

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