source: CIVL/examples/languageFeatures/pointersBad.cvl@ 5cf6652

1.23 2.0 main test-branch
Last change on this file since 5cf6652 was 262ecde, checked in by Ziqing Luo <ziqing@…>, 11 years ago

add new test case

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2368 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 227 bytes
RevLine 
[262ecde]1/* Commandline execution:
2 * civl verify pointersBad.cvl
3 * */
4#include<civlc.cvh>
5#include<stdlib.h>
6
7$output int out;
8void main() {
9 int a;
10 int* b;
11
12 b = (int *)malloc(sizeof(int));
13 free(b);
14 a = *(&out);
15 a = *b;
16}
Note: See TracBrowser for help on using the repository browser.