aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-03-14 16:56:03 -0400
committerRafael Ávila de Espíndola <[email protected]>2011-03-14 16:56:03 -0400
commit3436979b175496a3936f00e90748e2fad0343ae9 (patch)
tree644b108a195f87675199311905ff5799889caec5 /src/test
parentAdd llvmext/include to the list of include directories to hopefully put out t... (diff)
downloadrust-3436979b175496a3936f00e90748e2fad0343ae9.tar.xz
rust-3436979b175496a3936f00e90748e2fad0343ae9.zip
Split trans' collection in two passes. This allows us to handle tags
that are defined after use in a block. This is really inefficient, but for now it lets us compile the included test.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/tag-in-block.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/tag-in-block.rs b/src/test/run-pass/tag-in-block.rs
new file mode 100644
index 00000000..3ee7b740
--- /dev/null
+++ b/src/test/run-pass/tag-in-block.rs
@@ -0,0 +1,13 @@
+fn foo() {
+ fn zed(bar z) {
+ }
+ tag bar {
+ nil;
+ }
+ fn baz() {
+ zed(nil);
+ }
+}
+
+fn main(vec[str] args) {
+}