brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · c2b7602 Raw
20 lines · plain
1; RUN: split-file %s %t2; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/undefined_func.ll 2>&1 | FileCheck %s -check-prefix=UNDEFINED3; RUN: not llc -mtriple=x86_64-linux-gnu -o - %t/invalid_arg.ll 2>&1 | FileCheck %s -check-prefix=INVALID4 5;--- undefined_func.ll6; UNDEFINED: error: unknown function 'undefined_func' referenced by dso_local_equivalent7define void @call_undefined() {8  call void dso_local_equivalent @undefined_func()9  ret void10}11 12;--- invalid_arg.ll13; INVALID: error: expected a function, alias to function, or ifunc in dso_local_equivalent14define void @call_global_var() {15  call void dso_local_equivalent @glob()16  ret void17}18 19@glob = constant i32 120