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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [constant2.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++/49896
2
 
3
template
4
class test {
5
 protected:
6
  static const int versionConst = 0x80000000;
7
  enum { versionEnum = versionConst };
8
 public:
9
  int getVersion();
10
};
11
 
12
template
13
int test::getVersion() {
14
  return versionEnum;
15
}
16
 
17
class dummy_class {};
18
 
19
int main() {
20
  test t;
21
  return t.getVersion();
22
}

powered by: WebSVN 2.1.0

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