summaryrefslogtreecommitdiff
path: root/tests/headers/issue-826-generating-methods-when-asked-not-to.hpp
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-07-19 15:55:29 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-07-20 14:47:11 -0700
commit0b720a311ba243c66965a060af7dd3d9bc102315 (patch)
treeb2510df39fe430af585c98cdf2e505f3de7cf77a /tests/headers/issue-826-generating-methods-when-asked-not-to.hpp
parentb9b564869ff73f8725d857d4288812780305cc2d (diff)
Only whitelist items which we intend to generate code for
This makes only generating certain kinds of items more robust, since we don't need to keep checking whether codegen is enabled for different kinds of items all over the place, and can do it the once. It should also reduce the number of items we have to consider in our various analyses for which we don't ultimately care about the answer. Fixes #826
Diffstat (limited to 'tests/headers/issue-826-generating-methods-when-asked-not-to.hpp')
-rw-r--r--tests/headers/issue-826-generating-methods-when-asked-not-to.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/headers/issue-826-generating-methods-when-asked-not-to.hpp b/tests/headers/issue-826-generating-methods-when-asked-not-to.hpp
new file mode 100644
index 00000000..f6b2ed30
--- /dev/null
+++ b/tests/headers/issue-826-generating-methods-when-asked-not-to.hpp
@@ -0,0 +1,5 @@
+// bindgen-flags: --ignore-methods -- --target=i686-pc-win32
+
+struct Foo {
+ void test();
+};