Files
third_party_rust_bindgen/tests/headers/empty-enum.h
T
Nick Fitzgerald 2cb371a7ed Always add repr(C) to rustified enums
If we don't, then eddyb's recent layout optimizations will do unexpected things
to them.

We also need to handle empty `enum`s without variants. When `repr(C)` is on a
Rust `enum`, it cannot be empty, so we need to add a dummy.
2017-12-12 14:13:26 -06:00

16 lines
477 B
C

// bindgen-flags: --rustified-enum '.*Rustified.*' --constified-enum-module '.*Module.*' -- -x c++ --std=c++14
// Constified is default, so no flag for that.
enum EmptyConstified {};
enum EmptyRustified {};
enum EmptyModule {};
enum class EmptyClassRustified : char {};
enum class EmptyClassConstified : char {};
enum class EmptyClassModule : char {};
enum class ForwardClassRustified : char;
enum class ForwardClassConstified : char;
enum class ForwardClassModule : char;