OSDN Git Service

* cppexp.c (possible_sum_sign, integer_overflow, left_shift,
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / cpp / cmdlne-C.c
index eff2753..2dafec2 100644 (file)
@@ -10,7 +10,7 @@
    the beginning of a directive turns it into a non-directive.  */
 
 #define simple no comments
-#/**/define bad_directive              /* { dg-error "invalid" } */
+
 #define/**/obj_like/**/(some)/**/thing/**/
 #define fun_like(/**/x/**/,/**/y/**/)/**/
 /**/#define not_a_macro
@@ -29,3 +29,9 @@ fun_like (foo, bar)
 
 /* Check OK to redefine fun_like without comments in the params.  */
 #define fun_like(x, y)/**/
+
+/* Check comments in macros in directives are OK.  */
+#define ZERO 0 /* A trailing comment.  */
+
+#if ZERO
+#endif