Skip to content
Snippets Groups Projects
Commit 203c39eb authored by Julien Signoles's avatar Julien Signoles
Browse files

[doc] add missing example

parent a9f33a0c
No related branches found
No related tags found
No related merge requests found
void f(int *p) {
*p = 0;
}
void g(int *p) {
*p = 1;
}
int main(void) {
int t[3];
f(&t[0]);
/*@ assert \initialized(&t[0]); */
t[1] = 1;
g(&t[1]);
g(&t[2]);
/*@ assert \initialized(&t[1]); */
/*@ assert \initialized(&t[2]); */
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment