summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p10951.C
blob: 352b1a9584291b8cffe674a0a6dc989d218e0141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do assemble  }
// prms-id: 10951

inline int m1(const int& a) {
  return 1;
}

template <class T>
class A {
public:
  typedef int st;

  static int m2t() {
    return m1(1);
  }
};

A<int>::st i;
int m3() {
  return A<int>::m2t();
}