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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [override-attribs.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
// PR c++/14688
2
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
3
 
4
class one
5
{
6
public:
7
  virtual void
8
  test(void* value);  // { dg-error "overriding" }
9
};
10
 
11
class two : public one
12
{
13
public:
14
  void  __attribute__((regparm(2)))
15
  test(void* value);  // { dg-error "conflicting type attributes"  }
16
};
17
 
18
class three : public one
19
{
20
public:
21
  void __attribute__ ((cdecl))
22
  test(void* value);  // OK
23
};

powered by: WebSVN 2.1.0

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