mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-22 23:46:31 -04:00
809f3b1295
When using test-one.sh, unquoted wildcards are expanded by the shell, resulting in failing tests.
28 lines
418 B
C++
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,
|
|
};
|
|
};
|