aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p6004.C
blob: b692365b12e7e89261ae4a4d19806f49cc1df4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Special g++ Options: 
// prms-id: 6004

class A {
public:
  static int foo() asm("_my_routine");
};

int bar1() asm("foo__1A");
int bar2() asm("_foo__1A");
int bar3() asm("__foo__1A");
int bar1() { return 45; }
int bar2() { return 44; }
int bar3() { return 43; }

int A::foo() { return 42; }

main() {
  return A::foo() - 42;
}