OSDN Git Service

In gcc/testsuite/:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / type-size-2.m
index 499f083..656d85a 100644 (file)
@@ -4,9 +4,12 @@
 /* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
 /* { dg-do run } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
+/* { dg-additional-sources "../objc-obj-c++-shared/Object1.m" } */
+
 #include "../objc-obj-c++-shared/Object1.h"
 #include "../objc-obj-c++-shared/next-mapping.h"
-//#include <objc/objc.h>
+#include <stdio.h>
+#include <stdlib.h>
 #ifdef __NEXT_RUNTIME__
 #include <objc/objc-runtime.h>
 #define METHOD Method
@@ -70,5 +73,3 @@ int main(void) {
   CHECK_IF(totsize == offs4 + sizeof(int *));                                           
   return 0;
 }
-
-#include "../objc-obj-c++-shared/Object1-implementation.h"