diff --git a/src/test/run-pass/native-llvm.rs b/src/test/run-pass/native-llvm.rs new file mode 100644 index 00000000000..450f052bc62 --- /dev/null +++ b/src/test/run-pass/native-llvm.rs @@ -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; +} \ No newline at end of file