nested-func-1.m: Move to ...
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 14 Aug 2005 01:33:13 +0000 (01:33 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 14 Aug 2005 01:33:13 +0000 (18:33 -0700)
2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * objc.dg/nested-func-1.m: Move to ...
        * objc/execute/nested-func-1.m: Here.

From-SVN: r103072

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/nested-func-1.m [deleted file]
gcc/testsuite/objc/execute/nested-func-1.m [new file with mode: 0644]

index c5f9d51276d7e0dfd9059a3a09fa337a46b451be..5169ef64fdeaf66b3c0a8473c4ca578f7d897d5c 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * objc.dg/nested-func-1.m: Move to ...
+       * objc/execute/nested-func-1.m: Here.
+
 2005-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * lib/objc.exp (objc_target_compile): Check for -fgnu-runtime
diff --git a/gcc/testsuite/objc.dg/nested-func-1.m b/gcc/testsuite/objc.dg/nested-func-1.m
deleted file mode 100644 (file)
index 8ec3f72..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Test basic nested C function functionality within ObjC
-   methods.  */
-/* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
-/* { dg-options "-lobjc" } */
-/* { dg-do run } */
-#include <stdio.h>
-#include <stdlib.h>
-#include <objc/objc.h>
-#include <objc/Object.h>
-
-int bappy (int (*blargh) (int a, int b, int c))
-{
-  return blargh (4, 7, 2) + 3;
-}
-
-@interface Foo: Object
-+ (int)foo;
-@end
-
-@implementation Foo
-+ (int)foo
-{
-  int blargh (int a, int b, int c)
-  {
-    return a * b + c;
-  }
-  return bappy (blargh);
-}
-@end
-
-int main () 
-{
-  int f = [Foo foo];
-  if (f != 33)
-    abort ();
-
-  return 0;
-}
diff --git a/gcc/testsuite/objc/execute/nested-func-1.m b/gcc/testsuite/objc/execute/nested-func-1.m
new file mode 100644 (file)
index 0000000..c7dd535
--- /dev/null
@@ -0,0 +1,36 @@
+/* Test basic nested C function functionality within ObjC
+   methods.  */
+/* Contributed by Ziemowit Laski <zlaski@apple.com>.  */
+#include <stdio.h>
+#include <stdlib.h>
+#include <objc/objc.h>
+#include <objc/Object.h>
+
+int bappy (int (*blargh) (int a, int b, int c))
+{
+  return blargh (4, 7, 2) + 3;
+}
+
+@interface Foo: Object
++ (int)foo;
+@end
+
+@implementation Foo
++ (int)foo
+{
+  int blargh (int a, int b, int c)
+  {
+    return a * b + c;
+  }
+  return bappy (blargh);
+}
+@end
+
+int main () 
+{
+  int f = [Foo foo];
+  if (f != 33)
+    abort ();
+
+  return 0;
+}