aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/raw-string-18.c
blob: 8d4381d13102dce9bff3ada4cca8ceaf091edcc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR preprocessor/57824 */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -fdump-tree-optimized-lineno" { target c } } */
/* { dg-options "-std=c++11 -fdump-tree-optimized-lineno" { target c++ } } */

const char x[] = R"(
abc
def
ghi
)";

int
main ()
{
  extern void foo (); foo ();
  return 0;
}

/* Verify call to foo is on line 15.  */
/* { dg-final { scan-tree-dump ": 15\[]:]\[^\n\r]*foo" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */