111
|
1 /* { dg-do run } */
|
|
2 /* Tests we stringify without changing unprintable characts.
|
|
3
|
|
4 Andrew Pinski */
|
|
5
|
|
6 extern int strcmp (const char *, const char *);
|
|
7 #if DEBUG
|
|
8 extern int puts (const char *);
|
|
9 #else
|
|
10 #define puts(X)
|
|
11 #endif
|
|
12 extern void abort (void);
|
|
13 #define err(str) do { puts(str); abort(); } while (0)
|
|
14
|
|
15
|
|
16 #define S(X) S2(X)
|
|
17 #define S2(X) #X
|
|
18 #define TAB " " /* Note there is a tab character here. */
|
|
19
|
|
20 int main (int argc, char *argv[])
|
|
21 {
|
|
22 /* The space before "bar" here is vital. */
|
|
23 char a[] = S(S(TAB));
|
|
24
|
|
25 if (strcmp (a, "\"\\\" \\\"\""))
|
|
26 err ("stringification caused octal");
|
|
27
|
|
28 return 0;
|
|
29 }
|