diff options
| author | Graydon Hoare <[email protected]> | 2010-07-02 12:55:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-02 12:55:12 -0700 |
| commit | 4d00333b1ef41b5a2723b5af6352f61701976d99 (patch) | |
| tree | 928ab0fb7aff62ace7527f8082faf79c40078583 /src | |
| parent | Change make rules around running tests to not produce an .out file if test-ru... (diff) | |
| download | rust-4d00333b1ef41b5a2723b5af6352f61701976d99.tar.xz rust-4d00333b1ef41b5a2723b5af6352f61701976d99.zip | |
New test of explicit deref operator.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 1 | ||||
| -rw-r--r-- | src/test/run-pass/deref.rs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile index c9b8bddf..56d41790 100644 --- a/src/Makefile +++ b/src/Makefile @@ -356,6 +356,7 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \ complex.rs \ dead-code-one-arm-if.rs \ deep.rs \ + deref.rs \ div-mod.rs \ drop-on-ret.rs \ else-if.rs \ 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 |