Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/asm-names.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* The name specified by an asm("...") suffix on a declaration is not | |
2 to have an underscore prefixed, even if normal symbols are. | |
3 Problem reported by Krister Walfridsson <cato@df.lth.se>. */ | |
4 | |
5 /* { dg-do compile } */ | |
6 /* { dg-options "-fleading-underscore" } */ | |
7 /* { dg-final { scan-assembler-not "____frob14" } } */ | |
8 | |
9 extern void frobnicate (void) asm ("___frob14"); /* three underscores */ | |
10 | |
11 int | |
12 main (void) | |
13 { | |
14 frobnicate (); | |
15 return 0; | |
16 } |