diff options
Diffstat (limited to 'gcc/testsuite/objc.dg/sizeof-1.m')
-rw-r--r-- | gcc/testsuite/objc.dg/sizeof-1.m | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/testsuite/objc.dg/sizeof-1.m b/gcc/testsuite/objc.dg/sizeof-1.m index ae505c1e898..bf1623830a6 100644 --- a/gcc/testsuite/objc.dg/sizeof-1.m +++ b/gcc/testsuite/objc.dg/sizeof-1.m @@ -3,13 +3,13 @@ /* { dg-options "" } */ /* { dg-do run } */ -#include "../objc-obj-c++-shared/Object1.h" +#include "../objc-obj-c++-shared/TestsuiteObject.m" #include <objc/objc.h> extern void abort(void); #define CHECK_IF(expr) if(!(expr)) abort(); -@interface Foo: Object { +@interface Foo: TestsuiteObject { int a, b; float c, d; } @@ -18,17 +18,16 @@ extern void abort(void); @implementation Foo @end -typedef Object MyObject; +typedef TestsuiteObject MyObject; typedef struct Foo Foo_type; -@compatibility_alias AliasObject Object; +@compatibility_alias AliasObject TestsuiteObject; int main(void) { - CHECK_IF(sizeof(Foo) > sizeof(Object) && sizeof(Object) > 0); + CHECK_IF(sizeof(Foo) > sizeof(TestsuiteObject) && sizeof(TestsuiteObject) > 0); CHECK_IF(sizeof(Foo) == sizeof(Foo_type)); - CHECK_IF(sizeof(Object) == sizeof(MyObject)); - CHECK_IF(sizeof(Object) == sizeof(AliasObject)); + CHECK_IF(sizeof(TestsuiteObject) == sizeof(MyObject)); + CHECK_IF(sizeof(TestsuiteObject) == sizeof(AliasObject)); return 0; } -#include "../objc-obj-c++-shared/Object1-implementation.h" |