aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/kr-call.c
blob: 97068bce0cdb79efb161b2a856fa8c940a15b5df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 drops that attribute when
// also dropping the spurious argument.
void test0_helper();
void test0() {
  // CHECK: call void @test0_helper()
  test0_helper(1);
}
void test0_helper() {}