summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asm-names.c
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-13 23:09:17 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-13 23:09:17 +0000
commit5c0e77ae339b79d80d2a757ca5d79b825343733a (patch)
treeaa0880c8023a4cede3331ef9719a9c843e5d5014 /gcc/testsuite/gcc.dg/asm-names.c
parente8e236dbe0b98dff15f414343ce6b1833f3d0e64 (diff)
downloadgcc-5c0e77ae339b79d80d2a757ca5d79b825343733a.tar.gz
* gcc.dg/asm-names.c: Use scan-assembler-not rather
than linker trickery. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72447 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/asm-names.c')
-rw-r--r--gcc/testsuite/gcc.dg/asm-names.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/gcc/testsuite/gcc.dg/asm-names.c b/gcc/testsuite/gcc.dg/asm-names.c
index d2841a0f40c..f5e44e65f6c 100644
--- a/gcc/testsuite/gcc.dg/asm-names.c
+++ b/gcc/testsuite/gcc.dg/asm-names.c
@@ -2,28 +2,15 @@
to have an underscore prefixed, even if normal symbols are.
Problem reported by Krister Walfridsson <cato@df.lth.se>. */
-/* { dg-do link } */
+/* { dg-do compile } */
/* { dg-options "-fleading-underscore" } */
+/* { dg-final { scan-assembler-not "____frob14" } } */
extern void frobnicate (void) asm ("___frob14"); /* three underscores */
-void __frob14 (void) {} /* two underscores */
-
int
main (void)
{
frobnicate ();
return 0;
}
-
-/* In case built where the runtime expects no leading underscore on
- main(). */
-extern int xmain (void) asm ("main");
-
-int xmain (void) { return main(); }
-
-/* In case built where the runtime calls __main. */
-/* But make it weak because some targets already define this function. */
-#pragma weak ymain
-extern int ymain (void) asm ("___main");
-int ymain (void) { return main(); }