diff gcc/testsuite/gcc.dg/asm-names.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc/testsuite/gcc.dg/asm-names.c	Fri Oct 27 22:46:09 2017 +0900
@@ -0,0 +1,16 @@
+/* The name specified by an asm("...") suffix on a declaration is not
+   to have an underscore prefixed, even if normal symbols are.
+   Problem reported by Krister Walfridsson <cato@df.lth.se>.  */
+
+/* { dg-do compile } */
+/* { dg-options "-fleading-underscore" } */
+/* { dg-final { scan-assembler-not "____frob14" } } */
+
+extern void frobnicate (void) asm ("___frob14");  /* three underscores */
+
+int
+main (void)
+{
+  frobnicate ();
+  return 0;
+}