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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [parse7.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* PR c++/3650 */
2
/* { dg-do compile } */
3
 
4
class class1 {
5
public:
6
  explicit class1(double a) { data = a;  }
7
  double data;
8
};
9
 
10
class class2 {
11
public:
12
  class2(class1 a, float t) {  }
13
  class2(float t, class1 a) {  }
14
};
15
 
16
int main() {
17
  float t2 = 1.5;
18
  double pir = 3.14159;
19
  // Used to get: error: type specifier omitted for parameter `t2'
20
  class2 h(class1(double(pir)), t2);
21
  class2 i(class1(pir), t2);
22
 
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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