testsuite: Skip analyzer tests on AIX.
[official-gcc.git] / gcc / testsuite / c-c++-common / raw-string-9.c
blob6ba6b1a33e38c2e6b460d36345f266251b5e0808
1 // Make sure that we properly handle trigraphs in raw strings when
2 // trigraphs are disabled, too.
3 // { dg-options "-std=gnu99" { target c } }
4 // { dg-options "-std=gnu++0x" { target c++ } }
5 // { dg-do run }
7 const char b[] = "??>"; // { dg-message "-trigraphs" }
8 const char a[] = R"(??>??)??/
9 ??)";
11 #define TEST(str, val) \
12 if (sizeof (str) != sizeof (val) \
13 || __builtin_memcmp (str, val, sizeof (str)) != 0) \
14 __builtin_abort ()
16 int main()
18 TEST (a, "?\?>?\?)?\?/\n?\?");