aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/94_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests2/94_generic.c')
-rw-r--r--tests/tests2/94_generic.c3
1 files changed, 3 insertions, 0 deletions
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;
}