summaryrefslogtreecommitdiff
path: root/tests/headers/template_partial_specification.hpp
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2017-02-10 12:13:42 +1100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-02-10 14:04:59 +0100
commitc952b14b651e45e4ad5d438c2c10e329d804e9bf (patch)
treee66da56e86dacaabd761180f7420d6a9d10e90db /tests/headers/template_partial_specification.hpp
parent0001606737c305eff1bb84162f95023a11bcc055 (diff)
Don't mangle name in partial specification
Diffstat (limited to 'tests/headers/template_partial_specification.hpp')
-rw-r--r--tests/headers/template_partial_specification.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/headers/template_partial_specification.hpp b/tests/headers/template_partial_specification.hpp
new file mode 100644
index 00000000..fe1be658
--- /dev/null
+++ b/tests/headers/template_partial_specification.hpp
@@ -0,0 +1,10 @@
+// bindgen-flags: -- --target=x86_64-pc-win32
+
+template<typename Method, bool Cancelable>
+struct nsRunnableMethodTraits;
+
+template<class C, typename R, bool Cancelable, typename... As>
+struct nsRunnableMethodTraits<R(C::*)(As...), Cancelable>
+{
+ static const bool can_cancel = Cancelable;
+};