[llvm-commits] [llvm-gcc-4.2] r48649 - /llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m

Dale Johannesen dalej at apple.com
Fri Mar 21 10:05:06 PDT 2008


Author: johannes
Date: Fri Mar 21 12:05:01 2008
New Revision: 48649

URL: http://llvm.org/viewvc/llvm-project?rev=48649&view=rev
Log:
Remove duplicate code.


Modified:
    llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m

Modified: llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m?rev=48649&r1=48648&r2=48649&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/objc.dg/objc2-ivar-layout-empty-struct.m Fri Mar 21 12:05:01 2008
@@ -23,52 +23,3 @@
   return 0;
 }
 
-/* APPLE LOCAL file radar 5781140 */
-/* Check for correct treatment of empty struct when computing ivar layout. */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation -fobjc-gc" } */
-/* { dg-require-effective-target objc_gc } */
-
-#import <Foundation/Foundation.h>
-#import <objc/runtime.h>
-
-
-//  gcc-4.2 -c test2.m -fobjc-gc
- at interface F  : NSObject { id id1; struct { } x; uintptr_t i; id id2; } @end
- at implementation F @end
-
-int main()
-{
-	
-  const char *layout = class_getIvarLayout([F class]);
-
-  /* Desired layout: skip 0, scan 2 (isa, ivar); skip 1 (uintptr_t i), scan 1 (id id2). */
-  if (!layout  ||  0 != strcmp(layout, "\x02\x11"))
-        abort ();
-  return 0;
-}
-
-/* APPLE LOCAL file radar 5781140 */
-/* Check for correct treatment of empty struct when computing ivar layout. */
-/* { dg-do run { target powerpc*-*-darwin* i?86*-*-darwin* } } */
-/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation -fobjc-gc" } */
-/* { dg-require-effective-target objc_gc } */
-
-#import <Foundation/Foundation.h>
-#import <objc/runtime.h>
-
-
-//  gcc-4.2 -c test2.m -fobjc-gc
- at interface F  : NSObject { id id1; struct { } x; uintptr_t i; id id2; } @end
- at implementation F @end
-
-int main()
-{
-	
-  const char *layout = class_getIvarLayout([F class]);
-
-  /* Desired layout: skip 0, scan 2 (isa, ivar); skip 1 (uintptr_t i), scan 1 (id id2). */
-  if (!layout  ||  0 != strcmp(layout, "\x02\x11"))
-        abort ();
-  return 0;
-}





More information about the llvm-commits mailing list