aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/tokenizer/comments_ambiguous.bad
blob: 58dabbd8cf3026a57567b0afb8af6f1919f47b3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

/* These are ok */
int ok1 = 1 * 2;
int ok2(int s, ...*);

/* These are not ok */
int a = 1 *// ERROR, since if it was commented out it would be an end of comment
2;
int b(int s, ...*// ERROR
);

// The start and end of comment sequences may appear in strings also.
// That's tested in strings.bad

/* ERRORS */
int c; //*
int d; //* error, since if it was commented out, it would be a nested comment
int e; // /* also and error for the same reason
int f; // another error /*
int g; ///*
int h; //*/
int i; // */
int j; // */x
int k; // test /*