This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Add ObjC STABS test case
- From: Ziemowit Laski <zlaski at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 16 Dec 2004 18:48:03 -0800
- Subject: PATCH: Add ObjC STABS test case
This was actually still a real bug (caused by Zack's 21 Oct DBX patch)
in the apple-ppc-branch,
but has been fixed in HEAD since Apple's last merge. But, I'll check
in the test case anyway
to make sure things stay fixed.
--Zem
[gcc/testsuite/ChangeLog]
2004-12-16 Ziemowit Laski <zlaski@apple.com>
* objc.dg/stabs-1.m: New test.
Index: gcc/testsuite/objc.dg/stabs-1.m
===================================================================
RCS file: gcc/testsuite/objc.dg/stabs-1.m
diff -N gcc/testsuite/objc.dg/stabs-1.m
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gcc/testsuite/objc.dg/stabs-1.m 17 Dec 2004 02:48:07 -0000
@@ -0,0 +1,18 @@
+/* Check if the final SO STABS record goes into the .text section. */
+/* Contributed by Ziemowit Laski <zlaski@apple.com> */
+
+/* { dg-do compile } */
+/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* } { "*" } { "" } } */
+/* { dg-options "-gstabs" } */
+
+@interface MyClass
++ newWithArg: arg;
+@end
+
+@implementation MyClass
++ newWithArg: arg
+{
+}
+@end
+
+/* { dg-final { scan-assembler
".text\n\t.stabs.*100,0,0,Letext\[0-9\]*\nLetext" } } */