mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-12-27 09:39:01 +00:00
Code like:
#include <signal.h>
int main() { _Generic(signal, int: 0); }
should fail with
error: type 'extern void (*(int, void (*)(int)))(int)' does not match any association
not
error: type 'extern void *(int)(int, void *(int))' does not match any association
[matz: fix formatting, fix function-to-pointer decay for operands of
_Generic, add testcase for this]
15 lines
36 B
Plaintext
15 lines
36 B
Plaintext
20
|
|
10
|
|
20
|
|
123
|
|
2
|
|
0
|
|
5
|
|
1
|
|
2
|
|
3
|
|
4
|
|
long
|
|
1
|
|
3
|