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]
14 lines
36 B
Text
14 lines
36 B
Text
20
|
|
10
|
|
20
|
|
123
|
|
2
|
|
0
|
|
5
|
|
1
|
|
2
|
|
3
|
|
4
|
|
long
|
|
1
|
|
3
|