1 ; RUN: split-file %s %t
2 ; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/undefined_func.ll 2>&1 | FileCheck %s -check-prefix=UNDEFINED
3 ; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/invalid_arg.ll 2>&1 | FileCheck %s -check-prefix=INVALID
6 ; UNDEFINED: error: unknown function 'undefined_func' referenced by dso_local_equivalent
7 define void @call_undefined() {
8 call void dso_local_equivalent @undefined_func()
13 ; INVALID: error: expected a function, alias to function, or ifunc in dso_local_equivalent
14 define void @call_global_var() {
15 call void dso_local_equivalent @glob()
19 @glob = constant i32 1