summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-fs-1.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-10 14:52:31 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-10 14:52:31 +0000
commitde77c5a626a549cce108fb30fc86d2a23a5c481a (patch)
treebeaf59821a01df95a8b1e377cee366388bfa3a8f /gcc/testsuite/gcc.dg/asm-fs-1.c
parent7a45336a91b1c8563d4b253492616d3fb92f2045 (diff)
downloadgcc-de77c5a626a549cce108fb30fc86d2a23a5c481a.tar.gz
Oops, forgot to commit testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36825 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/asm-fs-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/asm-fs-1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/asm-fs-1.c b/gcc/testsuite/gcc.dg/asm-fs-1.c
new file mode 100644
index 00000000000..4c7c3e03329
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/asm-fs-1.c
@@ -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" } } */