Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/raw-string-10.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// Test that we don't revert trigraphs and line splicing when a raw string // literal is formed by token pasting. // { dg-options "-std=gnu99 -trigraphs" { target c } } // { dg-options "-std=c++0x" { target c++ } } // { dg-do run } #define PASTE(X,Y) X##Y const char a[] = PASTE(R,"(??>\ )"); #define TEST(str, val) \ if (sizeof (str) != sizeof (val) \ || __builtin_memcmp (str, val, sizeof (str)) != 0) \ __builtin_abort () int main() { TEST (a, "}"); }