OSDN Git Service

Fix testsuite.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / raw-string-7.c
1 /* The trailing whitespace after \ and before newline extension
2    breaks full compliance for raw strings.  */
3 /* { dg-do run { xfail *-*-* } } */
4 /* { dg-options "-std=gnu99" } */
5
6 /* Note, there is a single space after \ on the following line.  */
7 const void *s0 = R"[\ 
8 ]";
9 /* { dg-bogus "backslash and newline separated by space" "" { xfail *-*-* } 7 } */
10
11 /* Note, there is a single tab after \ on the following line.  */
12 const void *s1 = R"[\   
13 ]";
14 /* { dg-bogus "backslash and newline separated by space" "" { xfail *-*-* } 12 } */
15
16 int
17 main (void)
18 {
19   if (__builtin_strcmp (s0, "\\ \n") != 0
20       || __builtin_strcmp (s1, "\\\t\n") != 0)
21     __builtin_abort ();
22   return 0;
23 }