diff options
Diffstat (limited to 'tests/headers/auto.hpp')
-rw-r--r-- | tests/headers/auto.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/headers/auto.hpp b/tests/headers/auto.hpp new file mode 100644 index 00000000..b5f6d5f3 --- /dev/null +++ b/tests/headers/auto.hpp @@ -0,0 +1,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>(); +} |