aboutsummaryrefslogtreecommitdiff
path: root/test_cases/abigail_reader/symbol/version_definition_c.xml
diff options
context:
space:
mode:
authorSid Nayyar <sidnayyar@google.com>2024-03-20 13:48:54 +0000
committerGiuliano Procida <gprocida@google.com>2024-04-25 20:05:06 +0100
commitb725c74175b8f000e8f424c764271f0354e51209 (patch)
tree0f71a8fba472e249bade7c5d96e24c094ee2833c /test_cases/abigail_reader/symbol/version_definition_c.xml
parentbcd17020797b220bbbe61bd0dcb3e0813c140038 (diff)
downloadstg-b725c74175b8f000e8f424c764271f0354e51209.tar.gz
test suite: rename Abigail reader input files to `<test-name>_<language>.xml`
This will make the input file name format for abigail reader tests consistent with expectation files and test names. Furthermore, this will allow language names to the folded into test names and therefore get rid of string manipulation to determine input file names. PiperOrigin-RevId: 617497701 Change-Id: Id8172d882725c787610ec01aea41d6fc823be9ad
Diffstat (limited to 'test_cases/abigail_reader/symbol/version_definition_c.xml')
-rw-r--r--test_cases/abigail_reader/symbol/version_definition_c.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/test_cases/abigail_reader/symbol/version_definition_c.xml b/test_cases/abigail_reader/symbol/version_definition_c.xml
new file mode 100644
index 0000000..8f16c20
--- /dev/null
+++ b/test_cases/abigail_reader/symbol/version_definition_c.xml
@@ -0,0 +1,27 @@
+<abi-corpus version='2.1'>
+ <elf-function-symbols>
+ <elf-symbol name='test' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+ <elf-symbol name='versioned_foo' version='VERS_1' is-default-version='yes' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+ <elf-symbol name='versioned_foo' version='VERS_2' is-default-version='no' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+ <elf-symbol name='versioned_foo' version='VERS_3' is-default-version='no' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
+ <elf-symbol name='versioned_foo_v1' type='func-type' binding='global-binding' visibility='default-visibility' alias='versioned_foo@@VERS_1' is-defined='yes'/>
+ <elf-symbol name='versioned_foo_v2' type='func-type' binding='global-binding' visibility='default-visibility' alias='versioned_foo@VERS_2' is-defined='yes'/>
+ <elf-symbol name='versioned_foo_v3' type='func-type' binding='global-binding' visibility='default-visibility' alias='versioned_foo@VERS_3' is-defined='yes'/>
+ </elf-function-symbols>
+ <abi-instr address-size='64' path='version_definition.c' language='LANG_C11'>
+ <type-decl name='int' size-in-bits='32' id='95e97e5e'/>
+ <function-decl name='test' mangled-name='test' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='test'>
+ <return type-id='95e97e5e'/>
+ </function-decl>
+ <function-decl name='versioned_foo_v1' mangled-name='versioned_foo_v1' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='versioned_foo_v1'>
+ <return type-id='48b5725f'/>
+ </function-decl>
+ <function-decl name='versioned_foo_v2' mangled-name='versioned_foo_v2' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='versioned_foo_v2'>
+ <return type-id='48b5725f'/>
+ </function-decl>
+ <function-decl name='versioned_foo_v3' mangled-name='versioned_foo_v3' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='versioned_foo_v3'>
+ <return type-id='48b5725f'/>
+ </function-decl>
+ <type-decl name='void' id='48b5725f'/>
+ </abi-instr>
+</abi-corpus>