Objective-C [3/3] : Implement Wobjc-root-class [PR77404].
Add Wno-objc-root-class where needed to the objective-c++ tests. gcc/testsuite/ChangeLog: PR objc/77404 * obj-c++.dg/attributes/class-attribute-1.mm: Add Wno-objc-root-class. * obj-c++.dg/attributes/class-attribute-2.mm: Likewise. * obj-c++.dg/attributes/class-attribute-3.mm: Likewise. * obj-c++.dg/attributes/method-deprecated-1.mm: Likewise. * obj-c++.dg/attributes/method-deprecated-2.mm: Likewise. * obj-c++.dg/attributes/method-deprecated-3.mm: Likewise. * obj-c++.dg/attributes/method-format-1.mm: Likewise. * obj-c++.dg/attributes/method-nonnull-1.mm: Likewise. * obj-c++.dg/attributes/method-noreturn-1.mm: Likewise. * obj-c++.dg/attributes/method-sentinel-1.mm: Likewise. * obj-c++.dg/attributes/nsobject-01.mm: Likewise. * obj-c++.dg/attributes/parameter-attribute-1.mm: Likewise. * obj-c++.dg/attributes/parameter-attribute-2.mm: Likewise. * obj-c++.dg/attributes/proto-attribute-1.mm: Likewise. * obj-c++.dg/attributes/proto-attribute-3.mm: Likewise. * obj-c++.dg/attributes/proto-attribute-4.mm: Likewise. * obj-c++.dg/attributes/unused-parameter-1.mm: Likewise. * obj-c++.dg/bad-receiver-type.mm: Likewise. * obj-c++.dg/bitfield-3.mm: Likewise. * obj-c++.dg/bitfield-5.mm: Likewise. * obj-c++.dg/class-extension-1.mm: Likewise. * obj-c++.dg/class-extension-2.mm: Likewise. * obj-c++.dg/class-extension-3.mm: Likewise. * obj-c++.dg/class-extension-4.mm: Likewise. * obj-c++.dg/class-protocol-1.mm: Likewise. * obj-c++.dg/comp-types-1.mm: Likewise. * obj-c++.dg/comp-types-10.mm: Likewise. * obj-c++.dg/comp-types-2.mm: Likewise. * obj-c++.dg/comp-types-3.mm: Likewise. * obj-c++.dg/comp-types-5.mm: Likewise. * obj-c++.dg/comp-types-6.mm: Likewise. * obj-c++.dg/comp-types-7.mm: Likewise. * obj-c++.dg/comp-types-8.mm: Likewise. * obj-c++.dg/demangle-2.mm: Likewise. * obj-c++.dg/demangle-3.mm: Likewise. * obj-c++.dg/duplicate-class-1.mm: Likewise. * obj-c++.dg/encode-1-next.mm: Likewise. * obj-c++.dg/encode-1.mm: Likewise. * obj-c++.dg/enhanced-proto-2.mm: Likewise. * obj-c++.dg/exceptions-1.mm: Likewise. * obj-c++.dg/exceptions-3.mm: Likewise. * obj-c++.dg/exceptions-4.mm: Likewise. * obj-c++.dg/exceptions-5.mm: Likewise. * obj-c++.dg/extern-c-1.mm: Likewise. * obj-c++.dg/fobjc-std-1.mm: Likewise. * obj-c++.dg/gnu-api-2-class-meta.mm: Likewise. * obj-c++.dg/gnu-api-2-class.mm: Likewise. * obj-c++.dg/gnu-api-2-ivar.mm: Likewise. * obj-c++.dg/gnu-api-2-method.mm: Likewise. * obj-c++.dg/gnu-api-2-objc.mm: Likewise. * obj-c++.dg/gnu-api-2-objc_msg_lookup.mm: Likewise. * obj-c++.dg/gnu-api-2-object.mm: Likewise. * obj-c++.dg/gnu-api-2-property.mm: Likewise. * obj-c++.dg/gnu-api-2-protocol.mm: Likewise. * obj-c++.dg/gnu-api-2-resolve-method.mm: Likewise. * obj-c++.dg/gnu-api-2-sel.mm: Likewise. * obj-c++.dg/invalid-method-2.mm: Likewise. * obj-c++.dg/ivar-invalid-type-1.mm: Likewise. * obj-c++.dg/ivar-problem-1.mm: Likewise. * obj-c++.dg/lto/lto.exp: Likewise. * obj-c++.dg/lto/trivial-1_0.mm: Likewise. * obj-c++.dg/method-1.mm: Likewise. * obj-c++.dg/method-12.mm: Likewise. * obj-c++.dg/method-18.mm: Likewise. * obj-c++.dg/method-19.mm: Likewise. * obj-c++.dg/method-20.mm: Likewise. * obj-c++.dg/method-3.mm: Likewise. * obj-c++.dg/method-4.mm: Likewise. * obj-c++.dg/method-5.mm: Likewise. * obj-c++.dg/method-8.mm: Likewise. * obj-c++.dg/method-9.mm: Likewise. * obj-c++.dg/method-namespace-1.mm: Likewise. * obj-c++.dg/plugin/diagnostic-test-expressions-1.mm: Likewise. * obj-c++.dg/pr23709.mm: Likewise. * obj-c++.dg/pragma-2.mm: Likewise. * obj-c++.dg/private-1.mm: Likewise. * obj-c++.dg/private-2.mm: Likewise. * obj-c++.dg/property/property.exp: Likewise. * obj-c++.dg/proto-lossage-1.mm: Likewise. * obj-c++.dg/proto-lossage-5.mm: Likewise. * obj-c++.dg/proto-qual-1.mm: Likewise. * obj-c++.dg/protocol-inheritance-1.mm: Likewise. * obj-c++.dg/protocol-inheritance-2.mm: Likewise. * obj-c++.dg/protocol-optional-1.mm: Likewise. * obj-c++.dg/selector-1.mm: Likewise. * obj-c++.dg/selector-2.mm: Likewise. * obj-c++.dg/selector-3.mm: Likewise. * obj-c++.dg/selector-4.mm: Likewise. * obj-c++.dg/strings/strings.exp: Likewise. * obj-c++.dg/stubify-1.mm: Likewise. * obj-c++.dg/stubify-2.mm: Likewise. * obj-c++.dg/super-dealloc-1.mm: Likewise. * obj-c++.dg/super-dealloc-2.mm: Likewise. * obj-c++.dg/sync-3.mm: Likewise. * obj-c++.dg/syntax-error-2.mm: Likewise. * obj-c++.dg/syntax-error-4.mm: Likewise. * obj-c++.dg/syntax-error-7.mm: Likewise. * obj-c++.dg/syntax-error-9.mm: Likewise. * obj-c++.dg/template-4.mm: Likewise. * obj-c++.dg/template-7.mm: Likewise. * obj-c++.dg/template-8.mm: Likewise. * obj-c++.dg/threedotthree-abi-1.mm: Likewise. * obj-c++.dg/torture/dg-torture.exp: Likewise. * obj-c++.dg/torture/strings/strings.exp: Likewise. * obj-c++.dg/try-catch-12.mm: Likewise. * obj-c++.dg/try-catch-13.mm: Likewise.
This commit is contained in:
parent
d35fbf7f76
commit
64f191b152
|
@ -1,5 +1,6 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
/* Test deprecate attribute with an @interface declaration. */
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
/* Test that you get a warning when an unknown class attribute is ignored. */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wall" } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, May 2011. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wall" } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, October 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wall" } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Test handling of the NSObject attribute. */
|
||||
/* { dg-additional-options "-fsyntax-only " } */
|
||||
/* { dg-additional-options "-fsyntax-only -Wno-objc-root-class" } */
|
||||
|
||||
typedef struct AnObj * __attribute__ ((NSObject)) AnObjRef;
|
||||
typedef struct AnObj * __attribute__ ((__NSObject__)) AnotherObjRef;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test __attribute__((unused)) for an Objective-C method parameter. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wunused-parameter" } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Test that we get warnings for unrecognized attributes. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
/* Test deprecate attribute with normal @protocol declarations. */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
/* Test that you get a warning when an unknown protocol attribute is ignored. */
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-objc-root-class" } */
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// { dg-do compile }
|
||||
// { dg-options "" }
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface A
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
/* { dg-do run { target *-*-darwin* } } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-options "-fsigned-char" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
(@interface vs. @implementation) checks take the bitfield width into account. */
|
||||
/* Author: Ziemowit Laski <zlaski@apple.com> */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Base {
|
||||
int i;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test tests the basic of class extensions. */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test tests class extensions and protocols. */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test tests warnings on class extensions. */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test tests you can not declare a class extension after the class @implementation. */
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Check Class <protocol> types */
|
||||
/* Author: David Ayers <d.ayers@inode.at> */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
#include "../objc-obj-c++-shared/runtime.h"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface A
|
||||
+ new;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-prune-output ".*internal compiler error.*" } */
|
||||
/* { dg-options "-O3" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@class NSString;
|
||||
@protocol NSObject
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test various ObjC types assignments and comparisons. */
|
||||
/* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test simple ObjC types casts. */
|
||||
/* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test errors for assignments and comparisons between ObjC and C++ types. */
|
||||
/* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test assignments and comparisons involving `one-off' protocols. */
|
||||
/* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test assignments and comparisons involving category protocols. */
|
||||
/* Author: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-return-type" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* We used to ICE because we removed the cast to List_linked*
|
||||
in -[ListIndex_linked next]. */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test demangling an Objective-C method. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test demangling an Objective-C method in error messages. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-additional-options "-Wno-return-type" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test that a duplicated @implementation for the same class does not
|
||||
crash the compiler. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
struct Cxx {
|
||||
const struct Cxx *next;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
struct Cxx {
|
||||
const struct Cxx *next;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@protocol MyProto1
|
||||
@optional
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test checks the syntax @catch (...) which catches any
|
||||
exceptions. At the moment, @catch (...) is identical to @catch (id
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test that the compiler is checking the argument of @catch(), and
|
||||
produce errors when invalid types are used. */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test warnings when parsing syntax errors in @catch(). */
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test that you can use an unnamed argument with @catch. This test is the same
|
||||
as exceptions-3.mm, but with no name for @catch arguments. */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Test extern c support inside @implementation */
|
||||
/* Devang Patel <dpatel@apple.com>. */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test warnings when using -fobjc-std=objc1. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-fobjc-std=objc1" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-additional-options "-DOBJC_OLD_DISPATCH_PROTOTYPES" { target { *-*-darwin* } } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-additional-options "-DOBJC_OLD_DISPATCH_PROTOTYPES" { target { *-*-darwin* } } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
systems that don't have the V2 APis). XFAILing the run is not useful
|
||||
since it will XPASS on the sub-set that works. */
|
||||
/* { dg-skip-if "Incompatible" { *-*-darwin* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "" { *-*-* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* To get the modern GNU Objective-C Runtime API, you include
|
||||
objc/runtime.h. */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test that using an invalid type in a method declaration produces a
|
||||
friendly error without a compiler crash. */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
#include <objc/objc.h>
|
||||
|
||||
@interface MyRootClass
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This test checks what happens if there are 16 instance variables.
|
||||
In that case, the class was not created correctly. In this testcase,
|
||||
|
|
|
@ -41,10 +41,10 @@ if { ![check_effective_target_lto] } {
|
|||
global LTO_OPTIONS
|
||||
|
||||
set LTO_OPTIONS [list \
|
||||
{-O0 -flto -fgnu-runtime} \
|
||||
{-O2 -flto -fgnu-runtime} \
|
||||
{-O0 -flto -flto-partition=none -fgnu-runtime} \
|
||||
{-O2 -flto -flto-partition=none -fgnu-runtime} \
|
||||
{-O0 -flto -fgnu-runtime -Wno-objc-root-class} \
|
||||
{-O2 -flto -fgnu-runtime -Wno-objc-root-class} \
|
||||
{-O0 -flto -flto-partition=none -fgnu-runtime -Wno-objc-root-class} \
|
||||
{-O2 -flto -flto-partition=none -fgnu-runtime -Wno-objc-root-class} \
|
||||
]
|
||||
|
||||
obj-c++_init
|
||||
|
@ -67,10 +67,10 @@ foreach src $tests {
|
|||
# darwin targets can also run code with the NeXT runtime.
|
||||
if [istarget "*-*-darwin*" ] {
|
||||
set LTO_OPTIONS [list \
|
||||
{-O0 -flto -fnext-runtime} \
|
||||
{-O2 -flto -fnext-runtime} \
|
||||
{-O0 -flto -flto-partition=none -fnext-runtime} \
|
||||
{-O2 -flto -flto-partition=none -fnext-runtime} \
|
||||
{-O0 -flto -fnext-runtime -Wno-objc-root-class} \
|
||||
{-O2 -flto -fnext-runtime -Wno-objc-root-class} \
|
||||
{-O0 -flto -flto-partition=none -fnext-runtime -Wno-objc-root-class} \
|
||||
{-O2 -flto -flto-partition=none -fnext-runtime -Wno-objc-root-class} \
|
||||
]
|
||||
foreach src $tests {
|
||||
# If we're only testing specific files and this isn't one of them, skip it.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* { dg-lto-do run } */
|
||||
/* { dg-skip-if "Needs OBJC2 ABI" { "*-*-darwin*" && lp64 } } */
|
||||
|
||||
extern "C" {
|
||||
extern int printf (const char *,...) ;
|
||||
extern void abort (void) ;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
/* { dg-options "-Wstrict-selector-match" } */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-skip-if "Object interface removed" { *-*-darwin[1-2]* && { lp64 } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/Protocol.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Igor Seleznev <selez@mail.ru>. */
|
||||
/* This used to be broken. */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
#include <objc/objc.h>
|
||||
#include "../objc-obj-c++-shared/runtime.h"
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
used as method selectors. */
|
||||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Foo
|
||||
- (void)insertNewButtonImage:(Foo *)newButtonImage in:(Foo *)buttonCell;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wno-strict-selector-match" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wstrict-selector-match" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wno-strict-selector-match" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Tests of duplication. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface class1
|
||||
- (int) meth1; /* { dg-message "previous declaration" } */
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test for lookup of class (factory) methods. */
|
||||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface MyBase
|
||||
- (void) rootInstanceMethod;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Test for usage of namespace inside @implementation. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
@interface MyDocument
|
||||
@end
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-O -fdiagnostics-show-caret" } */
|
||||
/* { dg-excess-errors "tree range 0:0-0:0" { target { *-*-darwin* } } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* This file is similar to diagnostic-test-expressions-1.c
|
||||
(see the notes in that file); this file adds test
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface A
|
||||
+(void)method: (int)parameter {} /* { dg-error "expected" } */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* It is OK to use #pragma inside @implementation body. This test checks that. */
|
||||
/* Ziemowit Laski <zlaski@apple.com>. */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface A
|
||||
{
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test errors for accessing @private and @protected variables. */
|
||||
/* Based on work by: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
#include <objc/objc.h>
|
||||
|
||||
@interface MySuperClass
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* Based on work by: Nicola Pero <nicola@brainstorm.co.uk>. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -31,12 +31,12 @@ dg-init
|
|||
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
|
||||
|
||||
# Main loop.
|
||||
dg-runtest $tests "-fgnu-runtime" $DEFAULT_OBJCXXFLAGS
|
||||
dg-runtest $tests "-fgnu-runtime -Wno-objc-root-class" $DEFAULT_OBJCXXFLAGS
|
||||
|
||||
# Darwin targets can also run code with the NeXT runtime.
|
||||
# but Properties are not supported by the runtime lib before Darwin 9.
|
||||
if [istarget "*-*-darwin\[9123\]*" ] {
|
||||
dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS
|
||||
dg-runtest $tests "-fnext-runtime -Wno-objc-root-class" $DEFAULT_OBJCXXFLAGS
|
||||
}
|
||||
|
||||
# All done.
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
may be lost, leading to superfluous warnings. */
|
||||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* One-line substitute for objc/objc.h */
|
||||
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Do not lose references to forward-declared protocols. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
@class MyBaseClass;
|
||||
@class MyClassThatFails;
|
||||
@protocol _MyProtocol;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-do run } */
|
||||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-Wno-protocol" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, November 2010. */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
/* Author: Ziemowit Laski <zlaski@apple.com>. */
|
||||
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Int1
|
||||
+ (int)and_eq:(int)arg1 and:(int)arg2;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Test that we don't ICE when issuing a -Wselector warning. */
|
||||
/* { dg-options "-Wselector" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <objc/objc.h>
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* This is the "-fgnu-runtime" variant of objc.dg/selector-1.m. */
|
||||
/* { dg-options "-Wselector -fgnu-runtime" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
||||
typedef const struct objc_selector *SEL;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
/* { dg-options "-Wselector -fnext-runtime" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
typedef struct objc_object { struct objc_class *class_pointer; } *id;
|
||||
typedef struct objc_selector *SEL;
|
||||
|
|
|
@ -34,11 +34,11 @@ dg-init
|
|||
set tests [lsort [glob -nocomplain $srcdir/$subdir/*.mm]]
|
||||
|
||||
# Main loop.
|
||||
dg-runtest $tests "-fgnu-runtime" $DEFAULT_OBJCXXFLAGS
|
||||
dg-runtest $tests "-fgnu-runtime -Wno-objc-root-class" $DEFAULT_OBJCXXFLAGS
|
||||
|
||||
# darwin targets can also run code with the NeXT runtime.
|
||||
if [istarget "*-*-darwin*" ] {
|
||||
dg-runtest $tests "-fnext-runtime" $DEFAULT_OBJCXXFLAGS
|
||||
dg-runtest $tests "-fnext-runtime -Wno-objc-root-class" $DEFAULT_OBJCXXFLAGS
|
||||
}
|
||||
|
||||
# All done.
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-require-effective-target ilp32 } */
|
||||
/* { dg-options "-Os -mdynamic-no-pic -fno-exceptions -mmacosx-version-min=10.4 -msymbol-stubs" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
typedef struct objc_object { } *id ;
|
||||
int x = 41 ;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
/* { dg-skip-if "" { *-*-* } { "-fgnu-runtime" } { "" } } */
|
||||
/* { dg-require-effective-target ilp32 } */
|
||||
/* { dg-options "-mdynamic-no-pic -fdump-rtl-jump -mmacosx-version-min=10.4 -msymbol-stubs" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
typedef struct objc_object { } *id ;
|
||||
int x = 41 ;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* Author: Ziemowit Laski <zlaski@apple.com> */
|
||||
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Foo {
|
||||
void *isa;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
/* Author: Ziemowit Laski <zlaski@apple.com> */
|
||||
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Foo {
|
||||
void *isa;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010. */
|
||||
/* { dg-options "-fobjc-exceptions" } */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
/* Test that the compiler is checking the argument of @synchronized(),
|
||||
and produce errors when invalid types are used. */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* Recover gracefully from a syntax error. */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@implementation Whatever /* { dg-warning "cannot find interface declaration for .Whatever." } */
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Yet another stray infinite loop... */
|
||||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface t
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/* { dg-do compile } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
@interface Foo
|
||||
-(void) someMethod;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
@implementation SaturnDoc /* { dg-warning "cannot find interface declaration" } */
|
||||
- read: (void*)aStream ggg /* { dg-error "expected .:. at end of input" } */
|
||||
/* { dg-error "-:expected ..*. at end of input" "" { target *-*-* } .+1 } */
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
/* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
|
||||
/* { dg-options "-mno-constant-cfstrings" { target *-*-darwin* } } */
|
||||
/* { dg-additional-sources "../objc-obj-c++-shared/nsconstantstring-class-impl.mm" } */
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// Author: Fariborz Jahanian <fjahanian@apple.com>
|
||||
// { dg-do compile }
|
||||
// { dg-options "" }
|
||||
// { dg-additional-options "-Wno-objc-root-class" }
|
||||
typedef struct objc_class *Class;
|
||||
|
||||
@interface Object
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue