diff options
Diffstat (limited to 'tests/conformance/3-expressions/const_expr_ternary_rejected.zc')
| -rw-r--r-- | tests/conformance/3-expressions/const_expr_ternary_rejected.zc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conformance/3-expressions/const_expr_ternary_rejected.zc b/tests/conformance/3-expressions/const_expr_ternary_rejected.zc new file mode 100644 index 0000000..81af58b --- /dev/null +++ b/tests/conformance/3-expressions/const_expr_ternary_rejected.zc @@ -0,0 +1,4 @@ +// expect error: zc: line 3: +include rt; +const Z = 1 ? 2 : 3; +fn main() { return 0; } |
