PR testsuite/85189
[official-gcc.git] / gcc / testsuite / g++.dg / inherit / override-attribs.C
blob03521b1ef10244bdc31a570346d1e381ea022717
1 // PR c++/14688
2 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
4 class one
6 public:
7   virtual void
8   test(void* value);  // { dg-message "overridden" }
9 };
11 class two : public one
13 public:
14   void  __attribute__((regparm(2)))
15   test(void* value);  // { dg-error "conflicting type attributes"  }
18 class three : public one
20 public:
21   void __attribute__ ((cdecl))
22   test(void* value);  // OK