1 // RUN: %clang_cc1 -DNEEDS_LATE_PARSING -fno-experimental-late-parse-attributes -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -DNEEDS_LATE_PARSING -fsyntax-only -verify %s
4 // RUN: %clang_cc1 -UNEEDS_LATE_PARSING -fno-experimental-late-parse-attributes -fsyntax-only -verify=ok %s
5 // RUN: %clang_cc1 -UNEEDS_LATE_PARSING -fsyntax-only -verify=ok %s
7 #define __sized_by(f) __attribute__((sized_by(f)))
9 struct size_known
{ int dummy
; };
11 #ifdef NEEDS_LATE_PARSING
13 // expected-error@+1{{use of undeclared identifier 'count'}}
14 struct size_known
*buf
__sized_by(count
);
23 struct size_known
*buf
__sized_by(count
);