aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/tokenizer/strings.bad
blob: 83c7eeb435657469243dc56445fbcbde365a9f74 (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

/* ERRORS */
char^ a = "
;

/* ERRORS */
char^ b = "\"
;

/* ERRORS */
char^ c = "x
;

/* ERRORS */
char^ d = "\q"
;

/* ERRORS */
char^ e = """
;

/* ERRORS */
char^ f = "
xxx yyy"
;

/* ERRORS comments in strings must be escaped */
char^ g = "/*";
char^ h = "*/";

// Comment sequences in other places are tested in comments_ambiguous.bad

/* ERRORS invalid escape codes */
char^ i = "\*";
char^ j = "\/";