[hackers] [scc] Add basic test for long long constants || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 7 Sep 2015 23:44:57 +0200 (CEST)

commit 510b4fad0f6339b629f25bad6b02037ae4b7d8af
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Sep 7 23:34:01 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Mon Sep 7 23:43:23 2015 +0200

    Add basic test for long long constants

diff --git a/cc1/tests/test024.c b/cc1/tests/test024.c
new file mode 100644
index 0000000..e70e3cc
--- /dev/null
+++ b/cc1/tests/test024.c
_AT_@ -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;
+}
Received on Mon Sep 07 2015 - 23:44:57 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 07 2015 - 23:48:21 CEST