aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/comment_line_ends_at_newline.zc
blob: e3f5053bdf586ee11a6e1015007832068280bdf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
// expect: 6/
// spec 1.2.1: a // comment runs to the end of the line only
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int a = 1; // pn(100);
	int b = 5; pn(a + b);
	return 0;
}