Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / PR15826.c
blob28d7445647ef0ce6babebabc8a96531c3269e24c
1 // RUN: %clang_cc1 -verify -emit-llvm-only %s -o %t
3 /* Testcase for PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout */
4 struct sysctl_req {
5 struct aiocblist *p_aio;
6 };
8 struct sysctl_oid {
9 int (*oid_handler)(struct sysctl_req *req);
12 static struct sysctl_oid sysctl___kern_features_aio;
14 static void const *const __set_sysctl_set_sym_sysctl___kern_features_aio
15 __attribute__((__used__)) = &sysctl___kern_features_aio;
17 struct aiocblist {
18 struct aiocb uaiocb; // expected-error {{field has incomplete type}} expected-note {{forward declaration}}