X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fload-2.m;fp=gcc%2Ftestsuite%2Fobjc%2Fexecute%2Fload-2.m;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=eb90658367e35e9bf0e809d9597537a6245fdb9d;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/objc/execute/load-2.m b/gcc/testsuite/objc/execute/load-2.m deleted file mode 100644 index eb906583..00000000 --- a/gcc/testsuite/objc/execute/load-2.m +++ /dev/null @@ -1,46 +0,0 @@ -/* Contributed by Nicola Pero - Wed Jun 6 14:34:23 CEST 2001 */ -#include - -/* Test that +load is automatically called before main is run; - on two different classes. */ - -static int static_variable1 = 0; -static int static_variable2 = 0; - -@interface TestClass1 -{ - Class isa; -} -+ (void) load; -@end - -@implementation TestClass1 -+ (void) load -{ - static_variable1 = 1; -} -@end - -@interface TestClass2 -{ - Class isa; -} -+ (void) load; -@end - -@implementation TestClass2 -+ (void) load -{ - static_variable2 = 1; -} -@end - -int main (void) -{ - if (static_variable1 != 1 || static_variable2 != 1) - { - abort (); - } - - return 0; -}