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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wunused-label-3.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-label" }
3
 
4
extern void f9();
5
 
6
template
7
void
8
f1()
9
{
10
  if (i)
11
    return;
12
 
13
 l1: f9();                              // { dg-warning "not used" }
14
 l3: ; f9();                            // { dg-warning "not used" }
15
 l4: __attribute__ ((unused)) ; f9();
16
}
17
 
18
template
19
void f1<0>();
20
 
21
template
22
void
23
f2()
24
{
25
  if (i)
26
    return;
27
 
28
 l1: f9();                              // { dg-warning "not used" }
29
 l3: ; f9();                            // { dg-warning "not used" }
30
 l4: __attribute__ ((unused)) ; f9();
31
}
32
 
33
template
34
void f2<1>();
35
 
36
template
37
void
38
f3()
39
{
40
  void* lab;
41
 l1: f9();
42
 l2: __attribute__ ((unused)) ; f9();
43
  lab = i ? &&l1 : &&l2;
44
  goto *lab;
45
}
46
 
47
template
48
void f3<0>();
49
 
50
template
51
void f3<1>();

powered by: WebSVN 2.1.0

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