Petr Skocik
|
f7779efe58
|
Fix incorrect one-sided void handling in ?:
Also make the case when one side in ?: is a ptr
and the other is neither a ptr nor a null-ptr constant
fail cleanly instead of segfaulting.
|
2018-11-29 13:40:48 +01:00 |
|
Petr Skocik
|
49dfb5755a
|
Make fn designators in ?: decay to ptrs
This
_Generic((__typeof(1?f:f)*){0}, void (**)(void): (void)0);
should compile like it does in gcc and clang.
|
2018-11-29 12:43:01 +01:00 |
|
Petr Skocik
|
3058d4116e
|
Fix (Cexpr?struct1:struct2).member
Tcc used to fail this with `lvalue expected`
if the expression was a compile-time constant.
|
2018-11-29 10:26:56 +01:00 |
|
grischka
|
60cf64612c
|
tests2: move into tests
|
2013-02-05 13:22:36 +01:00 |
|