This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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" } } */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]