about summary refs log tree commit diff
path: root/src/test/run-pass/pipe-select-macro.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/pipe-select-macro.rs')
-rw-r--r--src/test/run-pass/pipe-select-macro.rs62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/test/run-pass/pipe-select-macro.rs b/src/test/run-pass/pipe-select-macro.rs
deleted file mode 100644
index cb126017247..00000000000
--- a/src/test/run-pass/pipe-select-macro.rs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2012 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.
-
-// FIXME #7303: xfail-test
-
-// Protocols
-proto! foo (
-    foo:recv {
-        do_foo -> foo
-    }
-)
-
-proto! bar (
-    bar:recv {
-        do_bar(int) -> barbar,
-        do_baz(bool) -> bazbar,
-    }
-
-    barbar:send {
-        rebarbar -> bar,
-    }
-
-    bazbar:send {
-        rebazbar -> bar
-    }
-)
-
-fn macros() {
-    include!("select-macro.rs");
-}
-
-// Code
-fn test(+foo: foo::client::foo, +bar: bar::client::bar) {
-    use bar::do_baz;
-
-    select! (
-        foo => {
-            foo::do_foo -> _next {
-            }
-        }
-
-        bar => {
-            bar::do_bar(x) -> _next {
-                info!("%?", x)
-            },
-
-            do_baz(b) -> _next {
-                if b { info!("true") } else { info!("false") }
-            }
-        }
-    )
-}
-
-pub fn main() {
-}