diff options
author | Boris-Chengbiao Zhou <bobo1239@web.de> | 2021-04-30 02:16:49 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-04-30 10:57:18 +0200 |
commit | 49430588d720dbb99f6694f7742c1462d36ca01a (patch) | |
tree | bf22fc512b75434ac2f5a8bdb04bcf5bd220bf8a /tests/headers | |
parent | 425a14617a9b807e51f37610385a24a0485d89fc (diff) |
Add a C naming option (#2045)
Closes #2045.
Fixes #1252.
Diffstat (limited to 'tests/headers')
-rw-r--r-- | tests/headers/c_naming.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/headers/c_naming.h b/tests/headers/c_naming.h new file mode 100644 index 00000000..fd84c271 --- /dev/null +++ b/tests/headers/c_naming.h @@ -0,0 +1,19 @@ +// bindgen-flags: --c-naming + +typedef const struct a { + int a; +} *a; + +union b { + int a; + int b; +}; +typedef union b b; + +enum c { + A, +}; + +void takes_a(a arg) {} +void takes_b(b arg) {} +void takes_c(enum c arg) {} |