blob: 46b3da3567c2f4abd320f47a6cfb4620bcb6b8e4 [file] [log] [blame]
//Test that DSA doesn't crash when processing an indirect call to an external function.
//RUN: llvm-gcc -S --emit-llvm -c %s -o %t.bc
//RUN: dsaopt %t.bc -dsa-td -disable-output
extern void func(void);
int main() {
void (*fp)(void) = func;
fp();
return 0;
}