aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/comment_slash_star_in_string.zc
blob: f552cc4a71bc43a31d2b4733389ace80682d4cf0 (plain) (blame)
1
2
3
4
5
// expect: 2/
// spec 1.2: comment starts inside a string literal are ordinary characters
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { pn(rt.len_w("/*")); /* real comment */ return 0; }