aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/17-misc.c
Commit message (Collapse)AuthorAgeFilesLines
* c: fix qualifiers for array declarators lemon2026-03-191-0/+6
| | | | | | `const int x[]` was being treated as `const int x[const]`, which is wrong, and matters when `x` is a function parameter that really decays to a pointer (`int const *const x`)
* test: add test for __func__ lemon2026-03-191-0/+2
|
* c: fix edge cases with zero sized bitfields and static initializers lemon2026-03-181-1/+19
|
* c: static eval refactoring lemon2026-03-141-0/+14
| | | | | Explicit node for static symbol (addresses). Should not break with edge cases like the previous ad-hoc approach. And some other bugfixes
* c: relax constexpr constraints, fix alignof lemon2026-03-091-0/+13
| | | | | | | | | | | | - Allow short-circuiting of constant logical expressions where the unevaluated operand is not a constant expression (`1 || 0/0`) - Allow constant integer expressions that evaluate to zero to be used as null pointer constants (GNU extension). + According to the standard, `int *x = 5*0;` should be rejected. But compilers evaluate `5*0 -> 0` and allow it as if a null pointer literal.
* x86_64/isel: cleanup and fix edge cases lemon2026-03-081-0/+19