File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,27 +43,27 @@ struct not_found_count_in_other_unnamed_substruct {
43
43
44
44
struct {
45
45
int dummy ;
46
- int array [] __counted_by (count ); // expected-error {{'counted_by' field 'count' isn't within the same struct as the flexible array }}
46
+ int array [] __counted_by (count ); // expected-error {{use of undeclared identifier 'count'}}
47
47
};
48
48
};
49
49
50
50
struct not_found_count_in_other_substruct {
51
51
struct _a1 {
52
- unsigned char count ; // expected-note {{'count' declared here}}
52
+ unsigned char count ;
53
53
} a1 ;
54
54
55
55
struct {
56
56
int dummy ;
57
- int array [] __counted_by (count ); // expected-error {{'counted_by' field 'count' isn't within the same struct as the flexible array }}
57
+ int array [] __counted_by (count ); // expected-error {{use of undeclared identifier 'count'}}
58
58
};
59
59
};
60
60
61
61
struct not_found_count_in_other_substruct_2 {
62
- struct _a1 {
63
- unsigned char count ; // expected-note {{'count' declared here}}
64
- } a1 ;
62
+ struct _a2 {
63
+ unsigned char count ;
64
+ } a2 ;
65
65
66
- int array [] __counted_by (count ); // expected-error {{'counted_by' field 'count' isn't within the same struct as the flexible array }}
66
+ int array [] __counted_by (count ); // expected-error {{use of undeclared identifier 'count'}}
67
67
};
68
68
69
69
struct not_found_suggest {
You can’t perform that action at this time.
0 commit comments