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-6.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wunused" }
3
 
4
template 
5
int
6
f1 (void)
7
{
8
  int c = ({
9
    int a;
10
    a = 1;
11
    a; });
12
  return c;
13
}
14
 
15
template 
16
void
17
f2 (void)
18
{
19
  int f;
20
  f = 0;
21
  __asm__ __volatile__ ("" : "+r" (f));
22
}
23
 
24
void
25
test ()
26
{
27
  (void) f1<0> ();
28
  f2<0> ();
29
}

powered by: WebSVN 2.1.0

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