aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass/spawn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/spawn.rs')
-rw-r--r--src/test/run-pass/spawn.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/spawn.rs b/src/test/run-pass/spawn.rs
new file mode 100644
index 00000000..765d4c9e
--- /dev/null
+++ b/src/test/run-pass/spawn.rs
@@ -0,0 +1,10 @@
+// -*- rust -*-
+
+fn main() {
+ spawn child(10);
+}
+
+fn child(int i) {
+ log i;
+}
+