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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [c-c++-common/] [raw-string-9.c] - Blame information for rev 295

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

Line No. Rev Author Line
1 295 jeremybenn
// Make sure that we properly handle trigraphs in raw strings when
2
// trigraphs are disabled, too.
3
// { dg-options "-std=gnu99" { target c } }
4
// { dg-options "-std=gnu++0x" { target c++ } }
5
// { dg-do run }
6
 
7
const char b[] = "??>";         // { dg-message "-trigraphs" }
8
const char a[] = R"(??>??)??/
9
??)";
10
 
11
#define TEST(str, val) \
12
  if (sizeof (str) != sizeof (val) \
13
      || __builtin_memcmp (str, val, sizeof (str)) != 0) \
14
    __builtin_abort ()
15
 
16
int main()
17
{
18
  TEST (a, "?\?>?\?)?\?/\n?\?");
19
}

powered by: WebSVN 2.1.0

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