Test cases

- Added note about compile-time constant violations that this code would generate C-wise to `simple_variables.t`
This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-13 11:53:23 +02:00
parent 990f0ed1cc
commit ffa2174172
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@ module simple_variables_decls_ass;
int x = 1+2*2/1-6;
discard "TDOO: Technically also not allowed (not compile-time constant in C)"
int y = 2+x;
discard "TODO: Technically the below should not be allowed as we cannot do it in C - sadly";