summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/expectations/tests/pointer-attr.rs10
-rw-r--r--tests/headers/pointer-attr.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/expectations/tests/pointer-attr.rs b/tests/expectations/tests/pointer-attr.rs
new file mode 100644
index 00000000..95fe9c5f
--- /dev/null
+++ b/tests/expectations/tests/pointer-attr.rs
@@ -0,0 +1,10 @@
+#![allow(
+ dead_code,
+ non_snake_case,
+ non_camel_case_types,
+ non_upper_case_globals
+)]
+
+extern "C" {
+ pub fn a(arg1: *const ::std::os::raw::c_char);
+}
diff --git a/tests/headers/pointer-attr.h b/tests/headers/pointer-attr.h
new file mode 100644
index 00000000..fe0004b8
--- /dev/null
+++ b/tests/headers/pointer-attr.h
@@ -0,0 +1 @@
+void a(const char __attribute__((btf_type_tag("a"))) *);