summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug-2907.c
blob: 67936ea80e54e6d80ca64ff10b3ac0946d9fdedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* bug-2820.c
   short was sometimes considered to be the sme type as int.
 */

#include <testfwk.h>

void testBug(void)
{
	short s;
	int i;

	s = _Generic (s, short : 1, int : 2, default : 0);
	i = _Generic (i, short : 1, int : 2, default : 0);

	ASSERT (s == 1);
	ASSERT (i == 2);
}