blob: ea4e3d3d70f07eff5038884764c1a16fb77203e8 [file] [log] [blame]
// RUN: %clang_cc1 -triple s390x-unknown-linux -emit-llvm -o - %s | FileCheck %s
// Test that we don't crash. The s390x-unknown-linux target happens
// to need to set a sext argument attribute on this call, and we need
// to make sure that rewriting it correctly keeps that attribute.
void test0_helper();
void test0() {
// CHECK: call void bitcast (void ()* @test0_helper to void (i32)*)(i32 signext 1)
test0_helper(1);
}
void test0_helper() {}