Commit a1210628 authored by Andre Maroneze's avatar Andre Maroneze 💬
Browse files

[kernel] add non-regression test for const local inits

parent 084a6d88
/*run.config
OPT: -no-autoload-plugins -load-module eva,scope -eva -eva-verbose 0
*/
unsigned id(unsigned x) { return x; }
void main() {
unsigned const r = id(1 > 2 ? 1 : 2);
//@ assert written_r: r == 2;
}
[kernel] Parsing tests/syntax/local-init-const.i (no preprocessing)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment