OSDN Git Service

* c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / ext / 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=c++0x" }
5
6 // Note, there is a single space after \ on the following line.
7 const char *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 char *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 }