xref: /llvm-project/clang/test/CodeGen/incomplete-function-type.c (revision 2ceee2f8843f31fb6dab9f133e9b248b2eaa713a)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -Wno-strict-prototypes -emit-llvm -o - %s | FileCheck %s
2 // CHECK: ModuleID
3 // CHECK: target triple = "
4 // CHECK-NOT: opaque
5 // CHECK-LABEL: define{{.*}} void @f0
6 
7 enum teste1 test1f(void), (*test1)(void) = test1f;
8 struct tests2 test2f(), (*test2)() = test2f;
9 struct tests3;
10 void test3f(struct tests3), (*test3)(struct tests3) = test3f;
11 enum teste1 { TEST1 };
12 struct tests2 { int x,y,z,a,b,c,d,e,f,g; };
13 struct tests3 { float x; };
14 
f0(void)15 void f0(void) {}
16