diff options
Diffstat (limited to 'libbindgen/tests/headers')
-rw-r--r-- | libbindgen/tests/headers/template_function_with_auto.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/template_function_with_auto.hpp b/libbindgen/tests/headers/template_function_with_auto.hpp new file mode 100644 index 00000000..3bd4a64f --- /dev/null +++ b/libbindgen/tests/headers/template_function_with_auto.hpp @@ -0,0 +1,9 @@ +// bindgen-flags: -- -std=c++14 + +template<typename T> auto Test1() { + return T(1); +} + +auto Test2() { + return Test1<unsigned int>(); +} |