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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
/* PR36999: Erroneous "does not declare anything" warnings.  */
2
/* { dg-do compile } */
3
 
4
class C1 {
5
 public: class C2 { };
6
};
7
 
8
void cf1 (class C1::C2, void*);  // { dg-bogus "does not declare anything" }
9
void cf2 (void*, class C1::C2);
10
void cf3 (C1::C2, void*);
11
 
12
namespace N {
13
 
14
enum E1 { foo };
15
enum E2 { bar };
16
 
17
template 
18
class TC1 { };
19
 
20
template 
21
class TC2 : public TC1 { };
22
 
23
}
24
 
25
void
26
tcf1 (N::TC2 *arg1,  // { dg-bogus "does not declare anything" }
27
      N::TC2 *arg2,
28
      N::TC2 *arg3)
29
{
30
}
31
 
32
void *
33
tcf2 (void *x)
34
{
35
  return (void *)
36
    (N::TC2 *)  // { dg-bogus "does not declare anything" }
37
    (N::TC2 *)
38
    (N::TC2 *)
39
    x;
40
}

powered by: WebSVN 2.1.0

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