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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [cv_func.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
typedef int FIC(int) const;
4
typedef int FI(int);
5
 
6
FIC f; // { dg-error "qualified" }
7
struct S {
8
  FIC f; // OK
9
 
10
  const FI g;
11
 
12
  int h(int) const;
13
 
14
};
15
FIC S::*pm = &S::f;
16
const FI S::*pm2 = &S::f; // { dg-error "cannot convert" }
17
const FIC S::*pm3 = &S::f;
18
 
19
int S::f(int) const
20
{
21
  return 17;
22
}
23
 
24
 
25
int foo(float) const // { dg-error "qualifier" }
26
{
27
  return 0;
28
}
29
 
30
int bar(float) volatile; // { dg-error "qualifier" }

powered by: WebSVN 2.1.0

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