diff options
author | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2000-10-10 14:52:31 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2000-10-10 14:52:31 +0000 |
commit | e9fc4ea8d166886bfaa25ca3981df69aab1adb7e (patch) | |
tree | beaf59821a01df95a8b1e377cee366388bfa3a8f /gcc/testsuite | |
parent | 462561b741a0957a156d4daf611b4e87c01cd633 (diff) | |
download | gcc-e9fc4ea8d166886bfaa25ca3981df69aab1adb7e.zip gcc-e9fc4ea8d166886bfaa25ca3981df69aab1adb7e.tar.gz gcc-e9fc4ea8d166886bfaa25ca3981df69aab1adb7e.tar.bz2 |
Oops, forgot to commit testcase.
From-SVN: r36825
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/gcc.dg/asm-fs-1.c | 14 |
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 0000000..4c7c3e0 --- /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" } } */ |