Skip to content
Snippets Groups Projects
Commit a1210628 authored by Andre Maroneze's avatar Andre Maroneze
Browse files

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

parent 084a6d88
No related branches found
No related tags found
No related merge requests found
/*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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment