Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- extern unsigned long test;
- extern unsigned long test_inst_1;
- extern void test_inst_2(void);
- extern void test_assembly(void);
- int main()
- {
- unsigned long test_val_c;
- void *test_ptr_wrong;
- void *test_ptr_correct_1;
- void *test_ptr_correct_2;
- test_assembly();
- test_c = test_val;
- test_ptr_wrong = (void *) test_inst_1;
- test_ptr_correct_1 = (void *) &test_inst_1;
- test_ptr_correct_2 = &test_inst_2;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement