1 // RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - -verify | FileCheck %s
23 // CHECK-LABEL: define void @f0()
27 // CHECK: call void @f1()
30 // CHECK-LABEL: define void @f1()
33 // CHECK: define {{.*}} @f3{{\(\)|\(.*sret.*\)}}
34 struct foo { int X, Y, Z; } f3() {
38 // PR4423 - This shouldn't crash in codegen
40 void f5() { f4(42); } //expected-warning {{too many arguments}}
42 // Qualifiers on parameter types shouldn't make a difference.
43 static void f6(const float f, const float g) {
45 void f7(float f, float g) {
47 // CHECK: define void @f7(float{{.*}}, float{{.*}})
48 // CHECK: call void @f6(float{{.*}}, float{{.*}})
51 // PR6911 - incomplete function types
53 void f8_callback(struct Incomplete);
54 void f8_user(void (*callback)(struct Incomplete));
56 f8_user(&f8_callback);
57 // CHECK-LABEL: define void @f8_test()
58 // CHECK: call void @f8_user({{.*}}* bitcast (void ()* @f8_callback to {{.*}}*))
59 // CHECK: declare void @f8_user({{.*}}*)
60 // CHECK: declare void @f8_callback()
63 // PR10204: don't crash
64 static void test9_helper(void) {}