view gcc/testsuite/c-c++-common/raw-string-19.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR preprocessor/57824 */
/* { dg-do compile } */
/* { dg-options "-std=gnu99 -fdump-tree-optimized-lineno -save-temps" { target c } } */
/* { dg-options "-std=c++11 -fdump-tree-optimized-lineno -save-temps" { 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 "c:15:\[^\n\r\]*foo" "optimized" } } */