OSDN Git Service

* g++.dg/inherit/override-attribs.C: Require ilp32 x86 target.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / inherit / override-attribs.C
1 // PR c++/14688
2 // { dg-do compile { target i?86-*-* x86_64-*-* } }
3 // { dg-require-effective-target ilp32 }
4
5 class one
6 {
7 public:
8   virtual void
9   test(void* value);  // { dg-error "overriding" }
10 };
11
12 class two : public one
13 {
14 public:
15   void  __attribute__((regparm(2)))
16   test(void* value);  // { dg-error "conflicting type attributes"  }
17 };
18
19 class three : public one
20 {
21 public:
22   void __attribute__ ((cdecl))
23   test(void* value);  // OK
24 };