about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-04-18 17:10:26 -0700
committerJohn Clements <clements@racket-lang.org>2013-04-30 16:31:55 -0700
commitd1921fb3caa131c83673020a377e1d0cd245b1ea (patch)
tree51bde57a15f6a152aca64c6fbb317bb39a2766a7 /src/test
parent3931ce448e0329672583d3210df714cca5176f02 (diff)
fixed this test case too
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/tag-align-u64.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/test/run-pass/tag-align-u64.rs b/src/test/run-pass/tag-align-u64.rs
index fd96d7d0242..56d384e5fdb 100644
--- a/src/test/run-pass/tag-align-u64.rs
+++ b/src/test/run-pass/tag-align-u64.rs
@@ -8,27 +8,26 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// xfail-test
 
-tag a_tag {
-    a_tag(u64);
+enum a_tag {
+    a_tag(u64)
 }
 
-type t_rec = {
+struct t_rec {
     c8: u8,
     t: a_tag
-};
+}
 
 fn mk_rec() -> t_rec {
-    return { c8:0u8, t:a_tag(0u64) };
+    return t_rec { c8:0u8, t:a_tag(0u64) };
 }
 
-fn is_8_byte_aligned(&&u: a_tag) -> bool {
+fn is_8_byte_aligned(u: &a_tag) -> bool {
     let p = ptr::to_unsafe_ptr(u) as u64;
     return (p & 7u64) == 0u64;
 }
 
 pub fn main() {
     let x = mk_rec();
-    assert!(is_8_byte_aligned(x.t));
+    assert!(is_8_byte_aligned(&x.t));
 }