summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/constructor-tp.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2016-12-15 18:02:49 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2016-12-15 18:02:49 +0100
commit1129431b00cb3ab76dce0ab8b2956d319d939f3a (patch)
treeb4c6e649f43f50d692ad2b203ce31c5eb784175e /libbindgen/tests/headers/constructor-tp.hpp
parent59987f142bbd97e44437532a640eb66c4d3a3e52 (diff)
ir: Don't parse constructors twice.
Diffstat (limited to 'libbindgen/tests/headers/constructor-tp.hpp')
-rw-r--r--libbindgen/tests/headers/constructor-tp.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/libbindgen/tests/headers/constructor-tp.hpp b/libbindgen/tests/headers/constructor-tp.hpp
new file mode 100644
index 00000000..7a420413
--- /dev/null
+++ b/libbindgen/tests/headers/constructor-tp.hpp
@@ -0,0 +1,19 @@
+
+template<typename T>
+class Foo {
+public:
+ Foo();
+};
+
+class Bar {
+public:
+ Bar();
+};
+
+template<typename T>
+Foo<T>::Foo() {
+}
+
+inline
+Bar::Bar() {
+}