summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/dir-only-7.c
blob: b9fb4d885288b33227758825c55e567a8a31a8ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// { dg-do preprocess  }
// { dg-options "-std=c++11" { target c++ } }
// { dg-options "-std=gnu99" { target c } }
// { dg-additional-options -fdirectives-only }

R"stuff(
)nope"
#error in raw literal
)stuff"
// comment
#define bob 1
// " comment
#if !bob
#error "no bob"
#endif

bob\
\
R"regular string not an erroneous raw one"

"regular"R"***(not a raw string"
#define HERE 1
 //)***"
#ifndef HERE
#error "oops no HERE"
#endif
 /* comment */


0e+R"*(not a raw string"
#define CPP_NUM 1
 //)*"
#ifndef CPP_NUM
#error "oops no CPP_NUM"
#endif