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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [primary-expression-1.C] - Blame information for rev 779

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

Line No. Rev Author Line
1 301 jeremybenn
// Copyright (C) 2002 Free Software Foundation
2
// Origin: C++/717
3
// Contributed by Gabriel Dos Reis 
4
// { dg-do compile }
5
 
6
class _eAny
7
{
8
public:
9
   _eAny(){}
10
};
11
 
12
template 
13
class _eSeq
14
{
15
public:
16
   _eSeq(const X thing){}
17
   int _oHash() {return 0;}
18
   _eSeq _oPlusPlus(const _eSeq other) const
19
   {
20
      return *this;
21
   }
22
   _eSeq take(const _eSeq other) const
23
   {
24
      return *this;
25
   }
26
};
27
 
28
 
29
template 
30
class _eHndl
31
{
32
public:
33
   _eHndl(const _eAny *obj){}
34
};
35
 
36
class VarInstances : public _eAny
37
{
38
public:
39
   VarInstances() : _eAny() {}
40
};
41
 
42
void testFunc(const VarInstances *testInstance)
43
{
44
   const _eSeq<_eHndl > temp1 =
45
      _eSeq<_eHndl >(_eHndl(testInstance));
46
 
47
   if((_eSeq<_eHndl
48
       >(_eHndl(testInstance))._oPlusPlus(temp1)._oHash() ==
49
       7))
50
      {
51
         return;
52
      }
53
}
54
 
55
int main(int argc, char** argv)
56
{
57
   testFunc(new VarInstances());
58
}

powered by: WebSVN 2.1.0

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