We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following test case will fail on the final two asserts:
test_dereferenced() { printf("Testing dereferencing a vec while accessing an element*n"); auto as[4] 1, 2, 3, 4, 5; auto ptr; ptr = &as; assert_eq_int(as[0], **ptr); assert_eq_int(as[0], *ptr[0]); assert_eq_int(as[2], *ptr[2]); assert_eq_int(3, as[2]); *ptr[2] =+ 1; assert_eq_int(4, as[2]); as[2]++; assert_eq_int(5, as[2]); (*ptr)[2]++; assert_eq_int(6, as[2]); }
It complains that Compile error: ++ or -- must operate on a memory location.
Compile error: ++ or -- must operate on a memory location
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following test case will fail on the final two asserts:
It complains that
Compile error: ++ or -- must operate on a memory location
.The text was updated successfully, but these errors were encountered: