aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p10951.C
blob: d53775fecc4d6f343977bf5fb662ea319a5141a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link:
// 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();
}