Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/obj-c++.dg/try-catch-15.mm @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test if addition of 'volatile' to object causes bogus error in presence of try-catch. */ /* { dg-options "-fobjc-exceptions" } */ /* { dg-do compile } */ @interface Exception @end class CppObj { public: void constMethod() const { } }; @interface MyObject : Exception - (void)doSomething; - (void)myMethod; @end @implementation MyObject - (void)doSomething { } - (void)myMethod { CppObj cppObj; @try { [self doSomething]; } @catch (Exception *exception) { } cppObj.constMethod(); } @end