1; Test that we correctly import an unsat resolution for type identifier "typeid1". 2; RUN: opt -S -lowertypetests -lowertypetests-summary-action=import -lowertypetests-read-summary=%S/Inputs/import-unsat.yaml -lowertypetests-write-summary=%t < %s | FileCheck %s 3; RUN: FileCheck --check-prefix=SUMMARY %s < %t 4 5; SUMMARY: GlobalValueMap: 6; SUMMARY-NEXT: 42: 7; SUMMARY-NEXT: - Linkage: 0 8; SUMMARY-NEXT: NotEligibleToImport: false 9; SUMMARY-NEXT: Live: true 10; SUMMARY-NEXT: Local: false 11; SUMMARY-NEXT: TypeTests: [ 123 ] 12; SUMMARY-NEXT: TypeIdMap: 13; SUMMARY-NEXT: typeid1: 14; SUMMARY-NEXT: TTRes: 15; SUMMARY-NEXT: Kind: Unsat 16; SUMMARY-NEXT: SizeM1BitWidth: 0 17 18target datalayout = "e-p:32:32" 19 20declare i1 @llvm.type.test(i8* %ptr, metadata %bitset) nounwind readnone 21 22define i1 @foo(i8* %p) { 23 %x = call i1 @llvm.type.test(i8* %p, metadata !"typeid1") 24 ; CHECK: ret i1 false 25 ret i1 %x 26} 27