Test the interaction between include and prefix configurations.
This broke mozilla-central once, hopefully not twice :)
This commit is contained in:
committed by
Ryan Hunt
parent
e49cabfd43
commit
dad36fef3d
@@ -0,0 +1,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
enum StyleOnlyThisShouldBeGenerated {
|
||||
Foo,
|
||||
Bar,
|
||||
};
|
||||
typedef uint8_t StyleOnlyThisShouldBeGenerated;
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
enum StyleOnlyThisShouldBeGenerated {
|
||||
Foo,
|
||||
Bar,
|
||||
};
|
||||
typedef uint8_t StyleOnlyThisShouldBeGenerated;
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
enum class StyleOnlyThisShouldBeGenerated : uint8_t {
|
||||
Foo,
|
||||
Bar,
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
enum StyleOnlyThisShouldBeGenerated {
|
||||
Foo,
|
||||
Bar,
|
||||
};
|
||||
typedef uint8_t StyleOnlyThisShouldBeGenerated;
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
pub const MY_CONST: u8 = 4;
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn ExternFunction() {
|
||||
}
|
||||
|
||||
#[repr(u8)]
|
||||
pub enum OnlyThisShouldBeGenerated {
|
||||
Foo,
|
||||
Bar,
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
[export]
|
||||
item_types = ["enums"]
|
||||
include = ["OnlyThisShouldBeGenerated"]
|
||||
prefix = "Style"
|
||||
Reference in New Issue
Block a user