blob: 9ce1784993905df3c809315e42933859f8ab4299 [file] [log] [blame]
Richard Trieu1466faf2013-07-02 20:49:10 +00001// RUN: %clang_cc1 -verify -emit-llvm %s -o %t
Serge Pavlovfb73ec82013-07-02 17:31:56 +00002
3/* Testcase for PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout */
4struct sysctl_req {
5 struct aiocblist *p_aio;
6};
7
8struct sysctl_oid {
9 int (*oid_handler)(struct sysctl_req *req);
10};
11
12static struct sysctl_oid sysctl___kern_features_aio;
13
14static void const *const __set_sysctl_set_sym_sysctl___kern_features_aio
15 __attribute__((__used__)) = &sysctl___kern_features_aio;
16
17struct aiocblist {
18 struct aiocb uaiocb; // expected-error {{field has incomplete type}} expected-note {{forward declaration}}
19};