scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

```commit 510b4fad0f6339b629f25bad6b02037ae4b7d8af
parent dc544bd4b9662bdb72af33fc1120f3c189fa0308
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon,  7 Sep 2015 23:34:01 +0200

Add basic test for long long constants

Diffstat:
cc1/tests/test024.c | 53+++++++++++++++++++++++++++++++++++++++++++++++++++++
```
```1 file changed, 53 insertions(+), 0 deletions(-)
diff --git a/cc1/tests/test024.c b/cc1/tests/test024.c
@@ -0,0 +1,53 @@
+
+/*
+name: TEST024
+description: Basic test for long long constants
+comments: This test is done for z80 data types
+output:
+F1
+G1	F1	main
+{
+-
+A2	Q	i
+A3	O	u
+	A2	#Q1	:Q
+	A2	#QFFFFFFFF	:Q
+	A2	#QFFFFFFFF	:Q
+	A2	#QFFFFFFFF	:Q
+	A2	#QFFFFFFFF	:Q
+	A2	#Q3	:Q
+	A2	#Q1	:Q
+	A3	#O1	:O
+	A3	#OFFFFFFFF	:O
+	A3	#OFFFFFFFF	:O
+	A3	#OFFFFFFFF	:O
+	A3	#OFFFFFFFF	:O
+	A3	#O3	:O
+	A3	#O0	:O
+	y	#I0
+}
+*/
+
+int
+main(void)
+{
+	long long i;
+	unsigned long long u;
+
+	i = 1;
+	i = -1;
+	i = -1l;
+	i = -1u;
+	i = -1ll;
+	i = -1ll & 3;
+	i = -1ll < 0;
+
+	u = 1;
+	u = -1;
+	u = -1l;
+	u = -1u;
+	u = -1ll;
+	u = -1llu & 3;
+	u = -1llu < 0;
+	return 0;
+}
```