summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/raw-string-11.c
blob: 49ceba225b3122675498459f23c2f69190f2b0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR preprocessor/48740
// { dg-options "-std=gnu99 -trigraphs -save-temps" { target c } }
// { dg-options "-std=c++0x -save-temps" { target c++ } }
// { dg-do run }

int main ()
{
  return __builtin_memcmp (R"raw(foo%sbar%sfred%sbob?????)raw",
			   "foo%sbar%sfred%sbob?""?""?""?""?",
			   sizeof ("foo%sbar%sfred%sbob?""?""?""?""?"));
}

// { dg-final { cleanup-saved-temps } }