summaryrefslogtreecommitdiff
path: root/tests/headers/dynamic_loading_with_blocklist.hpp
diff options
context:
space:
mode:
authorMarcel Hlopko <hlopko@google.com>2021-02-11 08:58:46 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2021-02-18 17:25:13 +0100
commit0e25962c4e69aef647e7275fa7bc7545dbb8cd0b (patch)
treef51e49624d79a707069bbfdeb0f15b78219cec94 /tests/headers/dynamic_loading_with_blocklist.hpp
parente59aa9218b0e862cbaed319582bf0b692dfacde2 (diff)
Rename whitelist -> allowlist and blacklist -> blocklist
For the commandline arguments I added undocumented aliases to old flags, to stay backwards compatible.
Diffstat (limited to 'tests/headers/dynamic_loading_with_blocklist.hpp')
-rw-r--r--tests/headers/dynamic_loading_with_blocklist.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/headers/dynamic_loading_with_blocklist.hpp b/tests/headers/dynamic_loading_with_blocklist.hpp
new file mode 100644
index 00000000..81266d1f
--- /dev/null
+++ b/tests/headers/dynamic_loading_with_blocklist.hpp
@@ -0,0 +1,15 @@
+// bindgen-flags: --dynamic-loading TestLib --blocklist-function baz
+
+class X {
+ int _x;
+
+ public:
+ X(int x);
+
+ void some_function();
+ void some_other_function();
+};
+
+int foo(void *x);
+int bar(void *x);
+int baz(void *x);