John McCall | 40f9c30 | 2011-08-03 00:43:55 +0000 | [diff] [blame^] | 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 drops that attribute when |
| 6 | // also dropping the spurious argument. |
| 7 | void test0_helper(); |
| 8 | void test0() { |
| 9 | // CHECK: call void @test0_helper() |
| 10 | test0_helper(1); |
| 11 | } |
| 12 | void test0_helper() {} |
| 13 | |