aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-headerparser/test_headers
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-headerparser/test_headers')
-rw-r--r--tools/syz-headerparser/test_headers/th_a.h22
-rw-r--r--tools/syz-headerparser/test_headers/th_b.h27
2 files changed, 49 insertions, 0 deletions
diff --git a/tools/syz-headerparser/test_headers/th_a.h b/tools/syz-headerparser/test_headers/th_a.h
new file mode 100644
index 000000000..f2afc8752
--- /dev/null
+++ b/tools/syz-headerparser/test_headers/th_a.h
@@ -0,0 +1,22 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+#ifndef __TEST_HEADER_A
+#define __TEST_HEADER_A
+
+#define RANDOM_MACRO_1 1
+#define RANDOM_MACRO_2 2
+
+struct A {
+ struct B *B_item;
+ const char *char_ptr;
+ unsigned int an_unsigned_int;
+ /*
+ * Some comments
+ */
+ bool a_bool;
+ bool another_bool;
+ some_type var;
+};
+
+#endif /* __TEST_HEADER_A */
diff --git a/tools/syz-headerparser/test_headers/th_b.h b/tools/syz-headerparser/test_headers/th_b.h
new file mode 100644
index 000000000..4b32e6041
--- /dev/null
+++ b/tools/syz-headerparser/test_headers/th_b.h
@@ -0,0 +1,27 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+#ifndef _TEST_HEADER_B
+#define _TEST_HEADER_B
+
+#include <linux/types.h> /* header comment */
+
+enum random_enum {
+ ONE = 1<<0,
+ TWO = 1<<1,
+};
+
+struct B {
+ unsigned long B1;
+ unsigned long B2;
+};
+
+struct struct_containing_union {
+ int something;
+ union {
+ char *a_char;
+ struct B *B_ptr;
+ } a_union;
+};
+
+#endif /* _TEST_HEADER_B */