1 // 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-message "overridden" } 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 }; 24