source: CIVL/examples/languageFeatures/pointerConvert.c@ a0b7ab5

1.23 2.0 main test-branch
Last change on this file since a0b7ab5 was c0d32c7, checked in by Manchun Zheng <zmanchun@…>, 10 years ago

fixed error report for unsupported pointer conversions.

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

  • Property mode set to 100644
File size: 113 bytes
Line 
1
2typedef struct Value_t{
3 int x;
4} Value;
5
6int main(){
7 int a,*p=&a;
8 Value *v;
9
10 v=(Value*)p;
11 v->x=5;
12}
Note: See TracBrowser for help on using the repository browser.