summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p6004.C
blob: 2b262bdb0477ca7ee2f96c4ae361d1f633755f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do run  }
// { dg-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;
}