Files
third_party_rust_bindgen/tests/headers/bitfield-enum-basic.hpp
T
Josh Hejna 809f3b1295 Quote regexes in test headers
When using test-one.sh, unquoted wildcards are expanded by the shell,
resulting in failing tests.
2018-07-29 20:30:59 -07:00

28 lines
418 B
C++

// bindgen-flags: --bitfield-enum "Foo|Buz|NS_.*|DUMMY_.*" --rustified-enum ".*" -- -std=c++11
enum Foo {
Bar = 1 << 1,
Baz = 1 << 2,
Duplicated = 1 << 2,
Negative = -3,
};
enum class Buz : signed char {
Bar = 1 << 1,
Baz = 1 << 2,
Duplicated = 1 << 2,
Negative = -3,
};
enum {
NS_FOO = 1 << 0,
NS_BAR = 1 << 1,
};
class Dummy {
enum {
DUMMY_FOO = 1 << 0,
DUMMY_BAR = 1 << 1,
};
};