aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test_cases/info_tests/source_filter/expected/types_cc.elf_stg23
-rw-r--r--test_cases/info_tests/source_filter/types.cc3
2 files changed, 26 insertions, 0 deletions
diff --git a/test_cases/info_tests/source_filter/expected/types_cc.elf_stg b/test_cases/info_tests/source_filter/expected/types_cc.elf_stg
index 4ec229b..f6c669d 100644
--- a/test_cases/info_tests/source_filter/expected/types_cc.elf_stg
+++ b/test_cases/info_tests/source_filter/expected/types_cc.elf_stg
@@ -1,5 +1,19 @@
version: 0x00000002
root_id: 0x84ea5130
+special {
+ id: 0x48b5725f
+ kind: VOID
+}
+pointer_reference {
+ id: 0x18bd6530
+ kind: POINTER
+ pointee_type_id: 0x48b5725f
+}
+typedef {
+ id: 0x4f137329
+ name: "Typedef"
+ referred_type_id: 0x18bd6530
+}
struct_union {
id: 0x54a61673
kind: STRUCT
@@ -56,6 +70,14 @@ elf_symbol {
full_name: "foo_struct"
}
elf_symbol {
+ id: 0x90772e58
+ name: "foo_typedef"
+ is_defined: true
+ symbol_type: OBJECT
+ type_id: 0x4f137329
+ full_name: "foo_typedef"
+}
+elf_symbol {
id: 0xc77e6f56
name: "foo_union"
is_defined: true
@@ -69,5 +91,6 @@ interface {
symbol_id: 0x5f43725e
symbol_id: 0x49093003
symbol_id: 0x8361f42b
+ symbol_id: 0x90772e58
symbol_id: 0xc77e6f56
}
diff --git a/test_cases/info_tests/source_filter/types.cc b/test_cases/info_tests/source_filter/types.cc
index b73bcb0..5d393dd 100644
--- a/test_cases/info_tests/source_filter/types.cc
+++ b/test_cases/info_tests/source_filter/types.cc
@@ -20,8 +20,11 @@ enum class EnumClass {
ONE = 1,
};
+typedef void* Typedef;
+
Struct foo_struct;
Union foo_union;
Class foo_class;
Enum foo_enum;
EnumClass foo_enum_class;
+Typedef foo_typedef;