From 159aa0b902b6939631ad7afbc77def5b7c77953c Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Mon, 26 Sep 2016 18:48:35 +0200 Subject: [PATCH] Add a compile-fail test. --- .../compile-fail/platform-intrinsic-params.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/test/compile-fail/platform-intrinsic-params.rs diff --git a/src/test/compile-fail/platform-intrinsic-params.rs b/src/test/compile-fail/platform-intrinsic-params.rs new file mode 100644 index 000000000000..e8a9031dba8d --- /dev/null +++ b/src/test/compile-fail/platform-intrinsic-params.rs @@ -0,0 +1,16 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(platform_intrinsics)] +extern "platform-intrinsic" { + fn x86_mm_movemask_ps() -> i32; //~ERROR found 0, expected 1 +} + +fn main() { }