Add tests for #2607 and #2770

This commit is contained in:
Seiichi Uchida 2018-06-07 12:30:14 +09:00
parent 08da30d72c
commit 5e59e686c1
2 changed files with 54 additions and 0 deletions

View file

@ -204,3 +204,30 @@ macro_rules! foo {
macro_rules! __wundergraph_expand_sqlite_mutation {
( $mutation_name:ident $((context = $($context:tt)*))*{ $( $entity_name:ident( $(insert = $insert:ident,)* $(update = $update:ident,)* $(delete = $($delete:tt)+)* ), )* } ) => {};
}
// #2607
macro_rules! bench {
($ty:ident) => {
criterion_group!(
name = benches;
config = ::common_bench::reduced_samples();
targets = call, map;
);
};
}
// #2770
macro_rules! save_regs {
() => {
asm!("push rax
push rcx
push rdx
push rsi
push rdi
push r8
push r9
push r10
push r11"
:::: "intel", "volatile");
};
}

View file

@ -246,3 +246,30 @@ macro_rules! __wundergraph_expand_sqlite_mutation {
}
) => {};
}
// #2607
macro_rules! bench {
($ty:ident) => {
criterion_group!(
name = benches;
config = ::common_bench::reduced_samples();
targets = call, map;
);
};
}
// #2770
macro_rules! save_regs {
() => {
asm!("push rax
push rcx
push rdx
push rsi
push rdi
push r8
push r9
push r10
push r11"
:::: "intel", "volatile");
};
}