OSDN Git Service

Oops, forgot to commit testcase.
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2000 14:52:31 +0000 (14:52 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Oct 2000 14:52:31 +0000 (14:52 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36825 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/gcc.dg/asm-fs-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/asm-fs-1.c b/gcc/testsuite/gcc.dg/asm-fs-1.c
new file mode 100644 (file)
index 0000000..4c7c3e0
--- /dev/null
@@ -0,0 +1,14 @@
+/* Origin: <hp@bitrange.com>
+   Make sure we do not get spurious '*' characters in section names or
+   elsewhere, with asm-specified names.  */
+/* { dg-do compile } */
+/* { dg-options "-ffunction-sections -fdata-sections" } */
+
+void foo (void) asm ("_bar");
+void foo (void) {}
+
+extern int foobar asm ("_baz");
+int foobar = 3;
+
+/* { dg-final { scan-assembler-not asm-fs-1.c "\\*_bar" } } */
+/* { dg-final { scan-assembler-not asm-fs-1.c "\\*_baz" } } */