blob: ea4e3d3d70f07eff5038884764c1a16fb77203e8 [file] [log] [blame]
John McCall40f9c302011-08-03 00:43:55 +00001// 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
John McCall01f151e2011-09-21 08:08:30 +00005// to make sure that rewriting it correctly keeps that attribute.
John McCall40f9c302011-08-03 00:43:55 +00006void test0_helper();
7void test0() {
John McCall01f151e2011-09-21 08:08:30 +00008 // CHECK: call void bitcast (void ()* @test0_helper to void (i32)*)(i32 signext 1)
John McCall40f9c302011-08-03 00:43:55 +00009 test0_helper(1);
10}
11void test0_helper() {}
12