1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
% cat foo.c void foo(); int main() { foo(); return 0; } clang -emit-llvm foo.c -c -o -|llvm-dis -o -|llvm-as -o foo llvm-as: <stdin>:9:20: error: invalid forward reference to function 'foo' with wrong type! call void (...)* @foo()