about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohannes Oertel <johannes.oertel@uni-due.de>2015-05-02 12:20:51 +0200
committerJohannes Oertel <johannes.oertel@uni-due.de>2015-05-02 15:22:27 +0200
commit3878f4d519c632c353024e98dc3fef1f156009a6 (patch)
tree568c83a890f2ef77b199ac9dc604d68087a48bfd
parent846b36833eaf8bf6f8412e2b6b2bdc49d4359803 (diff)
downloadrust-3878f4d519c632c353024e98dc3fef1f156009a6.tar.gz
rust-3878f4d519c632c353024e98dc3fef1f156009a6.zip
Add regression test for #17170
Closes #17170.
-rw-r--r--src/test/run-pass/issue-17170.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-17170.rs b/src/test/run-pass/issue-17170.rs
new file mode 100644
index 00000000000..ef134525927
--- /dev/null
+++ b/src/test/run-pass/issue-17170.rs
@@ -0,0 +1,20 @@
+// Copyright 2015 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 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+#![feature(simd)]
+
+#[simd]
+struct T(f64, f64, f64);
+
+static X: T = T(0.0, 0.0, 0.0);
+
+fn main() {
+    let _ = X;
+}