From: Hans-Peter Nilsson Date: Tue, 10 Oct 2000 14:52:31 +0000 (+0000) Subject: Oops, forgot to commit testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9fc4ea8d166886bfaa25ca3981df69aab1adb7e;p=gcc.git Oops, forgot to commit testcase. From-SVN: r36825 --- 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: + 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" } } */