From 3cc491e8f3e623f50e622aec534495df3e5a580d Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Fri, 17 Dec 2004 02:50:33 +0000 Subject: [PATCH] stabs-1.m: New test. [gcc/testsuite/ChangeLog] 2004-12-16 Ziemowit Laski * objc.dg/stabs-1.m: New test. From-SVN: r92302 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/objc.dg/stabs-1.m | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/objc.dg/stabs-1.m diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f879b238554..56acc8e3e76 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-12-16 Ziemowit Laski + + * objc.dg/stabs-1.m: New test. + 2004-12-16 Andrew Pinski * gcc.dg/visibility-c.c: Change compile to diff --git a/gcc/testsuite/objc.dg/stabs-1.m b/gcc/testsuite/objc.dg/stabs-1.m new file mode 100644 index 00000000000..fc07b633115 --- /dev/null +++ b/gcc/testsuite/objc.dg/stabs-1.m @@ -0,0 +1,18 @@ +/* Check if the final SO STABS record goes into the .text section. */ +/* Contributed by Ziemowit Laski */ + +/* { 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" } } */