1 // RUN: %clang_cc1 %s -Wno-strict-prototypes -emit-llvm -o - | FileCheck %s
11 struct abc
foo1(void);
12 // CHECK-DAG: declare {{.*}} @foo1(ptr sret(%struct.abc)
14 // CHECK-DAG: declare {{.*}} @foo2(ptr sret(%struct.abc)
15 struct abc
foo3(void){}
16 // CHECK-DAG: define {{.*}} @foo3(ptr noalias sret(%struct.abc)
19 struct abc dummy1
= foo1();
20 // CHECK-DAG: call {{.*}} @foo1(ptr sret(%struct.abc)
21 struct abc dummy2
= foo2();
22 // CHECK-DAG: call {{.*}} @foo2(ptr sret(%struct.abc)