diff --git a/tests/tests2/94_generic.c b/tests/tests2/94_generic.c index 4f989f0..d7fb5fc 100644 --- a/tests/tests2/94_generic.c +++ b/tests/tests2/94_generic.c @@ -27,6 +27,7 @@ typedef int int_type1; int main() { int i = 0; + signed long int l = 2; struct b titi; const int * const ptr; const char *ti; @@ -57,5 +58,7 @@ int main() printf("%d\n", i); printf("%s\n", _Generic(i + 2L, long: "long", int: "int", long long: "long long")); + i = _Generic(l, long: 1, int: 2); + printf("%d\n", i); return 0; } diff --git a/tests/tests2/94_generic.expect b/tests/tests2/94_generic.expect index b75a7d1..9aa9275 100644 --- a/tests/tests2/94_generic.expect +++ b/tests/tests2/94_generic.expect @@ -10,3 +10,4 @@ 3 4 long +1 \ No newline at end of file