aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm')
-rw-r--r--gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm34
1 files changed, 0 insertions, 34 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm b/gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm
deleted file mode 100644
index 01b3d5cbf..000000000
--- a/gcc-4.8.1/gcc/testsuite/obj-c++.dg/try-catch-15.mm
+++ /dev/null
@@ -1,34 +0,0 @@
-/* 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