aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-02 12:55:12 -0700
committerGraydon Hoare <[email protected]>2010-07-02 12:55:12 -0700
commit4d00333b1ef41b5a2723b5af6352f61701976d99 (patch)
tree928ab0fb7aff62ace7527f8082faf79c40078583 /src/test
parentChange make rules around running tests to not produce an .out file if test-ru... (diff)
downloadrust-4d00333b1ef41b5a2723b5af6352f61701976d99.tar.xz
rust-4d00333b1ef41b5a2723b5af6352f61701976d99.zip
New test of explicit deref operator.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/deref.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/deref.rs b/src/test/run-pass/deref.rs
new file mode 100644
index 00000000..36a28ba5
--- /dev/null
+++ b/src/test/run-pass/deref.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let @int x = @10;
+ let int y = *x;
+} \ No newline at end of file