[hackers] [scc] Add test for predefined cpp macros || Roberto E. Vargas Caballero
commit 489d4004127ad5b60f46ddd1c076534c6c583230
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Sep 26 19:21:47 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Sep 26 19:21:47 2015 +0200
Add test for predefined cpp macros
diff --git a/cc1/tests/test026.c b/cc1/tests/test026.c
new file mode 100644
index 0000000..6003650
--- /dev/null
+++ b/cc1/tests/test026.c
_AT_@ -0,0 +1,37 @@
+
+/*
+name: TEST026
+descritpion: Test of predefined cpp macros
+output:
+F1
+G2 F1 main
+{
+\
+A3 I y
+A5 P p
+ A5 "746573743032362E63 'P :P
+ A3 #I1E :I
+ A3 #I1 :I
+ A3 #I1 :I
+ A3 #I1 :I
+ A3 A3 :I
+}
+*/
+
+#define x(y) (y)
+
+int
+main(void)
+{
+ int y;
+ char *p;
+
+ p = __FILE__;
+ y = __LINE__;
+/* p = __DATE__; __DATE__ generates different value each time */
+ y = __STDC__;
+/* p = __TIME__; __TIME__ generates different value each time */
+ y = __STDC_HOSTED__;
+ y = __SCC__;
+ y = x(1);
+}
Received on Sat Sep 26 2015 - 19:22:25 CEST
This archive was generated by hypermail 2.3.0
: Sat Sep 26 2015 - 19:24:13 CEST