summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp/paste2.C
blob: 6f83a86410b1abad78ba4418586c4b4f87c29347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR preprocessor/57757
// { dg-do compile { target c++11 } }
// { dg-options "-save-temps" }
// { dg-final cleanup-saved-temps }

#define S(x) x
extern S("C")void exit (int);
int
main ()
{
  (void) (S("foo")and 0);
  const wchar_t *p = S(L"foo")L"bar";
  const char *a = S("foo")R"(bar)";
  exit (0);
}
OpenPOWER on IntegriCloud