Test the interaction between include and prefix configurations.

This broke mozilla-central once, hopefully not twice :)
This commit is contained in:
Emilio Cobos Álvarez
2018-10-30 22:30:28 +01:00
committed by Ryan Hunt
parent e49cabfd43
commit dad36fef3d
6 changed files with 50 additions and 0 deletions
@@ -0,0 +1,9 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
enum StyleOnlyThisShouldBeGenerated {
Foo,
Bar,
};
typedef uint8_t StyleOnlyThisShouldBeGenerated;
+9
View File
@@ -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;
+12
View File
@@ -0,0 +1,12 @@
pub const MY_CONST: u8 = 4;
#[no_mangle]
pub extern "C" fn ExternFunction() {
}
#[repr(u8)]
pub enum OnlyThisShouldBeGenerated {
Foo,
Bar,
}
+4
View File
@@ -0,0 +1,4 @@
[export]
item_types = ["enums"]
include = ["OnlyThisShouldBeGenerated"]
prefix = "Style"