Skip to content

Commit 63ba2e1

Browse files
Simd feature gating + Win32/64 fixes.
1 parent 8658a43 commit 63ba2e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/run-pass/simd-generics.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(simd)];
12+
1113
use std::ops;
1214

1315
#[simd] struct f32x4(f32, f32, f32, f32);
@@ -22,7 +24,7 @@ impl ops::Add<f32x4, f32x4> for f32x4 {
2224
}
2325
}
2426

25-
fn main() {
27+
pub fn main() {
2628
let lr = f32x4(1.0f32, 2.0f32, 3.0f32, 4.0f32);
2729

2830
// lame-o

src/test/run-pass/simd-issue-10604.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10+
#[allow(experimental)];
11+
#[feature(simd)];
1012

11-
fn main() {
13+
pub fn main() {
1214
let _o = None::<std::unstable::simd::i32x4>;
1315
}

0 commit comments

Comments
 (0)