Add an XFAILed test for native "llvm" modules
This functionality is completely broken
This commit is contained in:
parent
fda196769a
commit
cb50e4329a
1 changed files with 10 additions and 0 deletions
10
src/test/run-pass/native-llvm.rs
Normal file
10
src/test/run-pass/native-llvm.rs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// xfail-test
|
||||||
|
|
||||||
|
native "llvm" mod llvm {
|
||||||
|
fn thesqrt(n: float) -> float = "sqrt.f64";
|
||||||
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
let s = llvm::thesqrt(4.0);
|
||||||
|
assert 1.9 < s && s < 2.1;
|
||||||
|
}
|
Loading…
Reference in a new issue