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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-var-15.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++/45588
2
// { dg-do compile }
3
// { dg-options "-Wunused" }
4
 
5
void bar (unsigned char *);
6
 
7
template 
8
struct S
9
{
10
  static const int k = 6;
11
};
12
 
13
template 
14
const int S::k;
15
 
16
template 
17
void
18
foo ()
19
{
20
  const int i = S::k;
21
  unsigned char a[i];
22
  bar (a);
23
}
24
 
25
void
26
baz ()
27
{
28
  foo<0> ();
29
}

powered by: WebSVN 2.1.0

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