diff options
Diffstat (limited to 'tests/headers/c_naming.h')
-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) {} |