1 // RUN: %clang_cc1 -triple s390x-unknown-linux -emit-llvm -o - %s | FileCheck %s 2 3 // Test that we don't crash. The s390x-unknown-linux target happens 4 // to need to set a sext argument attribute on this call, and we need 5 // to make sure that rewriting it correctly keeps that attribute. 6 void test0_helper(); 7 void test0() { 8 // CHECK: call void bitcast (void ()* @test0_helper to void (i32)*)(i32 signext 1) 9 test0_helper(1); 10 } 11 void test0_helper() {} 12 13