OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [raw-string-7.c] - Blame information for rev 724

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 686 jeremybenn
// 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" { target c } }
5
// { dg-options "-std=c++0x" { target c++ } }
6
 
7
// Note, there is a single space after \ on the following line.
8
const char *s0 = R"(\ 
9
)";
10
// { dg-bogus "backslash and newline separated by space" "" { xfail *-*-* } 8 }
11
 
12
// Note, there is a single tab after \ on the following line.
13
const char *s1 = R"(\   
14
)";
15
// { dg-bogus "backslash and newline separated by space" "" { xfail *-*-* } 13 }
16
 
17
int
18
main (void)
19
{
20
  if (__builtin_strcmp (s0, "\\ \n") != 0
21
      || __builtin_strcmp (s1, "\\\t\n") != 0)
22
    __builtin_abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.