blob: 97068bce0cdb79efb161b2a856fa8c940a15b5df [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
5// to make sure that rewriting it correctly drops that attribute when
6// also dropping the spurious argument.
7void test0_helper();
8void test0() {
9 // CHECK: call void @test0_helper()
10 test0_helper(1);
11}
12void test0_helper() {}
13