aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c b/gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c
new file mode 100644
index 000000000..f5e44e65f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/asm-names.c
@@ -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;
+}