diff options
Diffstat (limited to 'tests/conformance/3-expressions/block_expr_u_tail.zc')
| -rw-r--r-- | tests/conformance/3-expressions/block_expr_u_tail.zc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/conformance/3-expressions/block_expr_u_tail.zc b/tests/conformance/3-expressions/block_expr_u_tail.zc new file mode 100644 index 0000000..61c4f03 --- /dev/null +++ b/tests/conformance/3-expressions/block_expr_u_tail.zc @@ -0,0 +1,9 @@ +// expect: 4/ +include rt; +void pn(int x) { rt.put_n(x); rt.put_c(10); } +fn main() { + int* p = { int* t = rt.new(int); *t = 4; u*t }; + pn(*p); + return 0; +} +// zc0: skip |
