diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/objc.dg/call-super-2.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/objc.dg/call-super-2.m b/gcc/testsuite/objc.dg/call-super-2.m index 0a3765f..836cad9 100644 --- a/gcc/testsuite/objc.dg/call-super-2.m +++ b/gcc/testsuite/objc.dg/call-super-2.m @@ -3,7 +3,8 @@ /* { dg-do compile } */ #include "../objc-obj-c++-shared/TestsuiteObject.h" -#include "../objc-obj-c++-shared/runtime.h" +/* NOTE: we are relying on the built-in type for objc_getClass being used + rather than the one that might come from including <objc/runtime.h>. */ #include <stddef.h> /* FIXME: This is temporary. At the moment, the compiler, when @@ -14,6 +15,9 @@ # define objc_getClass(C) objc_get_class(C) #endif +/* FIXME: casting of super is not permitted by clang, so that many of the + tests here are testing non-portable code. */ + @protocol Func + (int) class_func0; - (int) instance_func0; |