]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass-valgrind/cast-enum-with-dtor.rs
Update unsuspicious file list
[rustc.git] / src / test / run-pass-valgrind / cast-enum-with-dtor.rs
index 439c1080f47311ca1d06e65cb484a487ea022bc4..f7ef92df8fbec3a4f89a5dd2436ee6ca61d35a17 100644 (file)
@@ -1,17 +1,4 @@
-// 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.
-
-// no-prefer-dynamic
-
-#![allow(dead_code)]
-#![feature(const_atomic_usize_new)]
+#![allow(dead_code, cenum_impl_drop_cast)]
 
 // check dtor calling order when casting enums.
 
@@ -41,7 +28,7 @@ fn main() {
     {
         let e = E::C;
         assert_eq!(e as u32, 2);
-        assert_eq!(FLAG.load(Ordering::SeqCst), 0);
+        assert_eq!(FLAG.load(Ordering::SeqCst), 1);
     }
-    assert_eq!(FLAG.load(Ordering::SeqCst), 0);
+    assert_eq!(FLAG.load(Ordering::SeqCst), 1);
 }