mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
568586ff22
If a struct has an invalid field, mark it as invalid. Also avoid producing errors about incomplete types that are invalid. llvm-svn: 99150
20 lines
689 B
Objective-C
20 lines
689 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
struct S; // expected-note{{forward declaration of 'struct S'}}
|
|
typedef int FOO();
|
|
|
|
@interface INTF
|
|
{
|
|
struct F {} JJ;
|
|
int arr[]; // expected-error {{field has incomplete type}}
|
|
struct S IC; // expected-error {{field has incomplete type}}
|
|
struct T { // expected-note {{previous definition is here}}
|
|
struct T {} X; // expected-error {{nested redefinition of 'T'}}
|
|
}YYY;
|
|
FOO BADFUNC; // expected-error {{field 'BADFUNC' declared as a function}}
|
|
int kaka; // expected-note {{previous declaration is here}}
|
|
int kaka; // expected-error {{duplicate member 'kaka'}}
|
|
char ch[]; // expected-error {{field has incomplete type}}
|
|
}
|
|
@end
|