/test/language/address_of/test_address_of3.e
http://github.com/tybor/Liberty · Specman e · 28 lines · 22 code · 6 blank · 0 comment · 0 complexity · e2a7b64b64e4ded2427de91578a7edb8 MD5 · raw file
- class TEST_ADDRESS_OF3
- insert
- EIFFELTEST_TOOLS
-
- create {}
- main
- feature {}
- main
- local
- i: INTEGER
- do
- i := call_foo_with_pointer($foo)
- assert(i = 7)
- end
- foo: INTEGER
- do
- Result := 7
- end
- call_foo_with_pointer (pointer: POINTER): INTEGER
- external "C inline"
- alias "((int (*) (void*))$pointer)(C)"
- end
- end