diff options
Diffstat (limited to 'tests/conformance/3-expressions/call_static_and_const.zc')
| -rw-r--r-- | tests/conformance/3-expressions/call_static_and_const.zc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conformance/3-expressions/call_static_and_const.zc b/tests/conformance/3-expressions/call_static_and_const.zc new file mode 100644 index 0000000..d711488 --- /dev/null +++ b/tests/conformance/3-expressions/call_static_and_const.zc @@ -0,0 +1,6 @@ +// expect: 7/24/ +include rt; +void pn(int x) { rt.put_n(x); rt.put_c(10); } +struct S { const MAX = 24; static fn seven() { return 7; } } +fn main() { pn(S.seven()); pn(S.MAX); return 0; } +// zc0: skip |
