aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc')
-rw-r--r--gcc/testsuite/objc/execute/bf-1.m24
-rw-r--r--gcc/testsuite/objc/execute/bf-10.m22
-rw-r--r--gcc/testsuite/objc/execute/bf-11.m23
-rw-r--r--gcc/testsuite/objc/execute/bf-12.m23
-rw-r--r--gcc/testsuite/objc/execute/bf-13.m25
-rw-r--r--gcc/testsuite/objc/execute/bf-14.m25
-rw-r--r--gcc/testsuite/objc/execute/bf-15.m25
-rw-r--r--gcc/testsuite/objc/execute/bf-16.m26
-rw-r--r--gcc/testsuite/objc/execute/bf-17.m25
-rw-r--r--gcc/testsuite/objc/execute/bf-18.m17
-rw-r--r--gcc/testsuite/objc/execute/bf-19.m17
-rw-r--r--gcc/testsuite/objc/execute/bf-2.m24
-rw-r--r--gcc/testsuite/objc/execute/bf-3.m24
-rw-r--r--gcc/testsuite/objc/execute/bf-4.m24
-rw-r--r--gcc/testsuite/objc/execute/bf-5.m22
-rw-r--r--gcc/testsuite/objc/execute/bf-6.m22
-rw-r--r--gcc/testsuite/objc/execute/bf-7.m22
-rw-r--r--gcc/testsuite/objc/execute/bf-8.m22
-rw-r--r--gcc/testsuite/objc/execute/bf-9.m23
-rw-r--r--gcc/testsuite/objc/execute/bf-common.h76
-rw-r--r--gcc/testsuite/objc/execute/execute.exp42
21 files changed, 0 insertions, 553 deletions
diff --git a/gcc/testsuite/objc/execute/bf-1.m b/gcc/testsuite/objc/execute/bf-1.m
deleted file mode 100644
index 9a533a39b52..00000000000
--- a/gcc/testsuite/objc/execute/bf-1.m
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a;
- struct {
- int i:2;
- int j:3;
- int k:12;
- } flags;
- char c;
-// void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-10.m b/gcc/testsuite/objc/execute/bf-10.m
deleted file mode 100644
index 77076da51ed..00000000000
--- a/gcc/testsuite/objc/execute/bf-10.m
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:6;
- char c;
- int k:12;
- char d;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-11.m b/gcc/testsuite/objc/execute/bf-11.m
deleted file mode 100644
index 40d9b533a49..00000000000
--- a/gcc/testsuite/objc/execute/bf-11.m
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:6;
- short s;
- int k:12;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-12.m b/gcc/testsuite/objc/execute/bf-12.m
deleted file mode 100644
index 9e0a989ee75..00000000000
--- a/gcc/testsuite/objc/execute/bf-12.m
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:6;
- int s;
- int k:12;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-13.m b/gcc/testsuite/objc/execute/bf-13.m
deleted file mode 100644
index f8349338b53..00000000000
--- a/gcc/testsuite/objc/execute/bf-13.m
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- struct {
- int i:2;
- int j:6;
- char s;
- int k:12;
- } flags;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-14.m b/gcc/testsuite/objc/execute/bf-14.m
deleted file mode 100644
index 0ceedc08dd8..00000000000
--- a/gcc/testsuite/objc/execute/bf-14.m
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- struct {
- int i:2;
- int j:6;
- short s;
- int k:12;
- } flags;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-15.m b/gcc/testsuite/objc/execute/bf-15.m
deleted file mode 100644
index e6e7b30607d..00000000000
--- a/gcc/testsuite/objc/execute/bf-15.m
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a;
- struct {
- int i:2;
- int j:6;
- int s;
- int k:12;
- } flags;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-16.m b/gcc/testsuite/objc/execute/bf-16.m
deleted file mode 100644
index fb8b0c38f51..00000000000
--- a/gcc/testsuite/objc/execute/bf-16.m
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-struct A {
- int i;
- float f;
- int a:3;
- int b:2;
-};
-
-@interface MyObject
-{
- Class isa;
- int i;
- float f[3];
- struct A a, b;
- char c;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-17.m b/gcc/testsuite/objc/execute/bf-17.m
deleted file mode 100644
index 4c3b854962c..00000000000
--- a/gcc/testsuite/objc/execute/bf-17.m
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-struct A {
- int i;
- float f;
- int a:3;
- int b:2;
-};
-
-@interface MyObject
-{
- Class isa;
- int i;
- float f[3];
- struct A a;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-18.m b/gcc/testsuite/objc/execute/bf-18.m
deleted file mode 100644
index 36a7ea6c61b..00000000000
--- a/gcc/testsuite/objc/execute/bf-18.m
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- int i;
- char c[1];
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-19.m b/gcc/testsuite/objc/execute/bf-19.m
deleted file mode 100644
index 21775e7c77e..00000000000
--- a/gcc/testsuite/objc/execute/bf-19.m
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- unsigned int i;
- MyObject *object;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-2.m b/gcc/testsuite/objc/execute/bf-2.m
deleted file mode 100644
index eac0931549b..00000000000
--- a/gcc/testsuite/objc/execute/bf-2.m
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- struct {
- int i:2;
- int j:3;
- int k:12;
- } flags;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-3.m b/gcc/testsuite/objc/execute/bf-3.m
deleted file mode 100644
index 04cf0836faa..00000000000
--- a/gcc/testsuite/objc/execute/bf-3.m
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a;
- struct {
- int i:2;
- int j:6;
- int k:12;
- } flags;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-4.m b/gcc/testsuite/objc/execute/bf-4.m
deleted file mode 100644
index ae8017c688e..00000000000
--- a/gcc/testsuite/objc/execute/bf-4.m
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- struct {
- int i:2;
- int j:6;
- int k:12;
- } flags;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-5.m b/gcc/testsuite/objc/execute/bf-5.m
deleted file mode 100644
index e61d71f9ced..00000000000
--- a/gcc/testsuite/objc/execute/bf-5.m
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a;
- int i:2;
- int j:3;
- int k:12;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-6.m b/gcc/testsuite/objc/execute/bf-6.m
deleted file mode 100644
index 38222d3f676..00000000000
--- a/gcc/testsuite/objc/execute/bf-6.m
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:3;
- int k:12;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-7.m b/gcc/testsuite/objc/execute/bf-7.m
deleted file mode 100644
index 80ee6cef763..00000000000
--- a/gcc/testsuite/objc/execute/bf-7.m
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a;
- int i:2;
- int j:6;
- int k:12;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-8.m b/gcc/testsuite/objc/execute/bf-8.m
deleted file mode 100644
index cc472f96130..00000000000
--- a/gcc/testsuite/objc/execute/bf-8.m
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:6;
- int k:12;
- char c;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-9.m b/gcc/testsuite/objc/execute/bf-9.m
deleted file mode 100644
index 0f17727d6df..00000000000
--- a/gcc/testsuite/objc/execute/bf-9.m
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/Object.h>
-
-@interface MyObject
-{
- Class isa;
- float f;
- char a[3];
- int i:2;
- int j:3;
- char c;
- int k:12;
- char d;
- void *pointer;
-}
-@end
-
-@implementation MyObject
-@end
-
-#include "bf-common.h"
-
diff --git a/gcc/testsuite/objc/execute/bf-common.h b/gcc/testsuite/objc/execute/bf-common.h
deleted file mode 100644
index 123a45413d0..00000000000
--- a/gcc/testsuite/objc/execute/bf-common.h
+++ /dev/null
@@ -1,76 +0,0 @@
-#include <objc/encoding.h>
-
-
-void print_ivars (Class class)
-{
- struct objc_ivar_list* ivars = class->ivars;
- int i;
-
- for (i = 0; i < ivars->ivar_count; i++) {
- struct objc_ivar *ivar = &(ivars->ivar_list[i]);
- printf ("ivar '%s', type '%s', offset %d\n",
- ivar->ivar_name, ivar->ivar_type, ivar->ivar_offset);
- }
-}
-
-void compare_structures (Class class, const char* type)
-{
- struct objc_struct_layout layout;
- struct objc_ivar_list* ivars = class->ivars;
- int i = 0;
- int position;
-
- objc_layout_structure (type, &layout);
-
- while (objc_layout_structure_next_member (&layout))
- {
- struct objc_ivar *ivar;
- const char *ivar_type;
-
- if (i > ivars->ivar_count)
- {
- printf ("too many ivars in type %s, layout = %s\n",
- type, layout.type);
- exit (1);
- }
-
- ivar = &(ivars->ivar_list[i]);
- objc_layout_structure_get_info (&layout, &position, NULL, &ivar_type);
- printf ("real ivar '%s' offset %d\n",
- ivar->ivar_name, ivar->ivar_offset);
- printf ("computed type '%s' offset %d\n", ivar_type, position);
- if (position != ivar->ivar_offset)
- {
- printf ("offset %d and computed position %d don't match on ivar '%s'"
- " (i = %d)\n",
- ivar->ivar_offset, position, ivar->ivar_name, i);
- exit (1);
- }
- i++;
- }
-
- printf ("%d ivars checked\n", i);
-}
-
-int main ()
-{
- struct class_vars
- {
- @defs (MyObject);
- };
- int size1, size2;
- Class class = [MyObject class];
-
- printf ("type = %s\n", @encode (struct class_vars));
- print_ivars (class);
-
- compare_structures (class, @encode(struct class_vars));
- if ((size1 = objc_sizeof_type (@encode(struct class_vars)))
- != (size2 = sizeof (struct class_vars)))
- {
- printf ("sizes don't match (computed %d, exact %d)\n", size1, size2);
- abort ();
- }
-
- exit (0);
-}
diff --git a/gcc/testsuite/objc/execute/execute.exp b/gcc/testsuite/objc/execute/execute.exp
deleted file mode 100644
index 0f598a3c5f4..00000000000
--- a/gcc/testsuite/objc/execute/execute.exp
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright (C) 1991, 1992, 1993, 1995, 1997 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-# Please email any bugs, comments, and/or additions to this file to:
-# bug-gcc@prep.ai.mit.edu
-
-# This file was written by Rob Savoye. (rob@cygnus.com)
-# Modified by Ovidiu Predescu (ovidiu@aracnet.com)
-
-
-if $tracelevel then {
- strace $tracelevel
-}
-
-# load support procs
-load_lib objc-torture.exp
-
-#
-# main test loop
-#
-
-foreach src [lsort [glob -nocomplain $srcdir/$subdir/*.m]] {
- # If we're only testing specific files and this isn't one of them, skip it.
- if ![runtest_file_p $runtests $src] then {
- continue
- }
-
- objc-torture-execute $src
-}