mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-26 21:21:14 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
20 lines
291 B
C++
20 lines
291 B
C++
// 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>();
|
|
}
|