aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/cpp/template-diagnostic-hint/main.cpp
blob: 914d9b59484de9412fb730b17fc1ec4542a460c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
template <typename T, typename K> static K some_template_func(int x) {
  return (K)x;
}

template <typename T> struct Foo {
  template <typename K> T method(K k) { return (T)k; }
  static T smethod() { return (T)10; }
};

int main() {
  Foo<int> f;
  return some_template_func<int, long>(5) + Foo<int>::smethod() +
         f.method<long>(10);
}