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 |
John McCall | 01f151e | 2011-09-21 08:08:30 +0000 | [diff] [blame^] | 5 | // to make sure that rewriting it correctly keeps that attribute. |
John McCall | 40f9c30 | 2011-08-03 00:43:55 +0000 | [diff] [blame] | 6 | void test0_helper(); |
| 7 | void test0() { |
John McCall | 01f151e | 2011-09-21 08:08:30 +0000 | [diff] [blame^] | 8 | // CHECK: call void bitcast (void ()* @test0_helper to void (i32)*)(i32 signext 1) |
John McCall | 40f9c30 | 2011-08-03 00:43:55 +0000 | [diff] [blame] | 9 | test0_helper(1); |
| 10 | } |
| 11 | void test0_helper() {} |
| 12 | |