mirror of https://github.com/lukechilds/cc-rs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
377 B
32 lines
377 B
extern crate gcc_test;
|
|
|
|
use gcc_test::*;
|
|
|
|
#[test]
|
|
fn foo_here() {
|
|
unsafe {
|
|
assert_eq!(foo(), 4);
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn bar_here() {
|
|
unsafe {
|
|
assert_eq!(bar1(), 5);
|
|
assert_eq!(bar2(), 6);
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn asm_here() {
|
|
unsafe {
|
|
assert_eq!(asm(), 7);
|
|
}
|
|
}
|
|
|
|
#[test]
|
|
fn baz_here() {
|
|
unsafe {
|
|
assert_eq!(baz(), 8);
|
|
}
|
|
}
|
|
|