No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / cpp / strify4.c
blobb8b2f11e9d112546225c4d055ea45f0785356b59
1 /* { dg-do run } */
2 /* Tests we stringify without changing unprintable characts.
4 Andrew Pinski */
6 extern int strcmp (const char *, const char *);
7 extern int puts (const char *);
8 extern void abort (void);
9 #define err(str) do { puts(str); abort(); } while (0)
12 #define S(X) S2(X)
13 #define S2(X) #X
14 #define TAB " " /* Note there is a tab character here. */
16 int main (int argc, char *argv[])
18 /* The space before "bar" here is vital. */
19 char a[] = S(S(TAB));
21 if (strcmp (a, "\"\\\" \\\"\""))
22 err ("stringification caused octal");
24 return 0;