brintos

brintos / llvm-project-archived public Read only

0
0
Text · 434 B · 4810f36 Raw
16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -passes=instcombine < %s | FileCheck %s3 4@.str = private constant [13 x i8] c"an error: %d\00"5 6declare i32 @fprintf(ptr, ...)7 8define i32 @test1() {9; CHECK-LABEL: @test1(10; CHECK-NEXT:    [[CALL:%.*]] = call i32 (ptr, ...) @fprintf(ptr nonnull @.str)11; CHECK-NEXT:    ret i32 012;13  %call = call i32 (ptr, ...) @fprintf(ptr @.str)14  ret i32 015}16