summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/auto.hpp
blob: b5f6d5f3604f68e1fd05af9b66fb4a6c5e236848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// bindgen-flags: -- -std=c++14
// bindgen-unstable

class Foo {
  static constexpr auto kFoo = 2 == 2;
};

template<typename T>
class Bar {
  static const constexpr auto kBar = T(1);
};

template<typename T> auto Test1() {
  return T(1);
}

auto Test2() {
  return Test1<unsigned int>();
}