aboutsummaryrefslogtreecommitdiff
path: root/test_cases/info_tests/source_filter/type_roots.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test_cases/info_tests/source_filter/type_roots.cc')
-rw-r--r--test_cases/info_tests/source_filter/type_roots.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/test_cases/info_tests/source_filter/type_roots.cc b/test_cases/info_tests/source_filter/type_roots.cc
new file mode 100644
index 0000000..5d393dd
--- /dev/null
+++ b/test_cases/info_tests/source_filter/type_roots.cc
@@ -0,0 +1,30 @@
+struct Struct {
+ long x;
+};
+
+union Union {
+ long y;
+};
+
+class Class {
+ long z;
+};
+
+enum Enum {
+ ENUM_ZERO = 0,
+ ENUM_ONE = 1,
+};
+
+enum class EnumClass {
+ ZERO = 0,
+ ONE = 1,
+};
+
+typedef void* Typedef;
+
+Struct foo_struct;
+Union foo_union;
+Class foo_class;
+Enum foo_enum;
+EnumClass foo_enum_class;
+Typedef foo_typedef;