diff options
| author | 2026-10-14 16:14:02 +0330 | |
|---|---|---|
| committer | 2026-10-14 16:14:02 +0330 | |
| commit | d93000c4b5ff7b3dda0e59a4d333b0463e745e04 (patch) | |
| tree | 0a244d9e379794e2240b2c876f1a029fa34a8d27 /tests/langerrors | |
| parent | globals: a float or f32 global takes a float literal initializer (appendix b.... (diff) | |
include: written inside a function body is 'include is top level only' (appendix b.2.9)
Diffstat (limited to 'tests/langerrors')
| -rw-r--r-- | tests/langerrors/include_in_function.zc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/langerrors/include_in_function.zc b/tests/langerrors/include_in_function.zc new file mode 100644 index 0000000..06136f9 --- /dev/null +++ b/tests/langerrors/include_in_function.zc @@ -0,0 +1,2 @@ +// expect: include is top level only +fn main() { include std; return 0; } |
