PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / raw-string-18.c
blob6709946e0c56be072df1b2995d6c8d2b0fba884e
1 /* PR preprocessor/57824 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99 -fdump-tree-optimized-lineno" { target c } } */
4 /* { dg-options "-std=c++11 -fdump-tree-optimized-lineno" { target c++ } } */
6 const char x[] = R"(
7 abc
8 def
9 ghi
10 )";
12 int
13 main ()
15 extern void foo (); foo ();
16 return 0;
19 /* Verify call to foo is on line 15. */
20 /* { dg-final { scan-tree-dump "c:15:\[^\n\r\]*foo" "optimized" } } */