blob: 93cebc5f13eb59e1dc96c34d2a6ee1e8fa864fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/*
bug-2585.c
int cast issue
*/
#include <testfwk.h>
#include <limits.h>
void testBug (void)
{
int i;
i = SCHAR_MAX;
ASSERT ((signed char)(i << (int)1) == -2);
}
|