1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fcheck-pointer-bounds -mmpx" } */ 3 4 class c1 5 { 6 public: 7 virtual int test1 (const char *); 8 }; 9 10 class c2 11 { 12 public: 13 int test2 (const char *); 14 }; 15 16 int test1(const char *)17c1::test1 (const char *) 18 { 19 return 0; 20 } 21 22 int test2(const char *)23c2::test2 (const char *) 24 { 25 return 0; 26 } 27