aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorPatrick Walton <[email protected]>2011-03-09 11:33:44 -0800
committerPatrick Walton <[email protected]>2011-03-09 12:53:12 -0800
commitfcd195bb4ca47d4b3c7dfd3e6c14dc5771e139cc (patch)
treebbbed9d03385dcece7f7971033b3dfac1ce4d2ed /src/test/run-pass
parentPass the task pointer as just another i32. (diff)
downloadrust-fcd195bb4ca47d4b3c7dfd3e6c14dc5771e139cc.tar.xz
rust-fcd195bb4ca47d4b3c7dfd3e6c14dc5771e139cc.zip
rustc: Don't try to load dynamically-sized types when translating tag variants. Add a test case for this.
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/simple-generic-tag.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/run-pass/simple-generic-tag.rs b/src/test/run-pass/simple-generic-tag.rs
new file mode 100644
index 00000000..ba6a3242
--- /dev/null
+++ b/src/test/run-pass/simple-generic-tag.rs
@@ -0,0 +1,7 @@
+tag clam[T] {
+ a(T);
+}
+
+fn main() {
+}
+