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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [label11.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++/38725
2
// { dg-do compile }
3
// { dg-options "" }
4
 
5
struct A {};
6
struct B : virtual A {};
7
int vi;
8
void *vp;
9
 
10
void
11
f1 (int i)
12
{
13
  goto *i;
14
}
15
 
16
void
17
f2 (B b)
18
{
19
  goto *b;      // { dg-error "cannot convert" }
20
}
21
 
22
template 
23
void
24
f3 (T i)
25
{
26
  goto *i;
27
}
28
 
29
void
30
f3a ()
31
{
32
  f3 (vi);
33
}
34
 
35
template 
36
void
37
f4 (T i)
38
{
39
  goto *i;
40
}
41
 
42
void
43
f4a ()
44
{
45
  f4 (vp);
46
}

powered by: WebSVN 2.1.0

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