// S : tags error min c $TAGS // S : expect --result error --location $file:14 // S : cc -o test.bc $CC_OPT $file // S : verify $V_OPT test.bc #include #include #include char array[20]; // TODO: our current clang does not generate line information for an indirect goto int main() { array[0] = 'a'; array[10] = 'b'; assert( *(array + 10) == 'b' ); uint64_t aint = (uint64_t)array; aint += (uint64_t)(_VM_PT_Code - _VM_PT_Global) << _VM_PB_Off; void *achar = (void *)aint; void *labref = &&lab; lab: goto *achar; }