Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.mike/mangle1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do assemble } |
2 // { dg-options "" } | |
3 | |
4 // Make sure the typedef name is used in name mangling, not some random | |
5 // anonymous name | |
6 | |
7 struct foo { | |
8 typedef enum { red } color; | |
9 void bar(color r) { | |
10 } | |
11 } f; | |
12 | |
13 #ifdef sparc | |
14 void f1() asm("bar__3fooQ23foo3$_0"); | |
15 void f1() { | |
16 } | |
17 void f2() asm("_bar__3fooQ23foo3$_0"); | |
18 void f2() { | |
19 } | |
20 void f3() asm("__bar__3fooQ23foo3$_0"); | |
21 void f3() { | |
22 } | |
23 #endif | |
24 | |
131 | 25 int |
111 | 26 main() { |
27 f.bar(foo::red); | |
28 } |