repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* gcc.target/i386/mpx/hard-reg-1-nov.c (mpx_test): Use "esp"
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p6004.C
blob
2b262bdb0477ca7ee2f96c4ae361d1f633755f75
1
// { dg-do run }
2
// { dg-options "" }
3
// prms-id: 6004
4
5
class A {
6
public:
7
static int foo() asm("_my_routine");
8
};
9
10
int bar1() asm("foo__1A");
11
int bar2() asm("_foo__1A");
12
int bar3() asm("__foo__1A");
13
int bar1() { return 45; }
14
int bar2() { return 44; }
15
int bar3() { return 43; }
16
17
int A::foo() { return 42; }
18
19
main() {
20
return A::foo() - 42;
21
}