ref: cf960fb35d42abc7516f45b87f246598796f476b
dir: /cc1/tests/test022.c/
/* See LICENSE file for copyright and license details. */ /* name: TEST022 description: Basic test for int constants comments: This test is done for z80 data types error: output: V2 K #NC V4 K #N9 G6 I F "main { \ A7 I "i A8 N "u A7 #I1 :I A7 #IFFFF :I A7 #IFFFF :I A7 #IFFFF :I A7 #IFFFF :I A7 #I3 :I A7 #I1 :I A7 #I0 :I A8 #N1 :N A8 #NFFFF :N A8 #NFFFF :N A8 #NFFFF :N A8 #NFFFF :N A8 #N0 :N A8 #N3 :N A8 #N0 :N h #I0 } */ int main(void) { int i; unsigned u; i = 1; i = -1; i = -1l; i = -1u; i = -1ll; i = 32766 + 1 & 3; i = (int) 32768 < 0; i = -1u < 0; u = 1; u = -1; u = -1l; u = -1u; u = -1ll; u = (unsigned) 32768 < 0; u = 32766 + 1 & 3; u = -1u < 0; return 0; }