mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-26 08:31:44 +00:00
TinyC upgrade (#6593)
This commit is contained in:
committed by
Andreas Rumpf
parent
9c00f6decd
commit
d2c7d391c8
19
tinyc/tests/tests2/72_long_long_constant.c
Normal file
19
tinyc/tests/tests2/72_long_long_constant.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
long long int res = 0;
|
||||
|
||||
if (res < -2147483648LL) {
|
||||
printf("Error: 0 < -2147483648\n");
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
if (2147483647LL < res) {
|
||||
printf("Error: 2147483647 < 0\n");
|
||||
return 2;
|
||||
}
|
||||
else
|
||||
printf("long long constant test ok.\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user