ref: 177b56dfc2e35ed0b5c57963c4be1d435147d0bd
parent: 539338d3e3f1ac406cd5bf8863d217bcb648e7c2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Nov 17 17:12:20 EST 2021
tests/cc: Add 0197-cppcomment.c
--- /dev/null
+++ b/tests/cc/execute/0197-cppcomment.c
@@ -1,0 +1,12 @@
+#define TEST1 1 // comment
+#define TEST2 2
+
+int
+main(void)
+{
+ if (TEST1 != 1)
+ return 1;
+ if (TEST2 != 2)
+ return 2;
+ return 0;
+}
--- a/tests/cc/execute/scc-tests.lst
+++ b/tests/cc/execute/scc-tests.lst
@@ -187,3 +187,4 @@
0194-vararg.c
0195-unexpected.c
0196-invalidchar.c
+0197-cppcomment.c