// RUN: %clang_cc1 -x c -triple bpf-pc-linux-gnu -dwarf-version=4 -fsyntax-only -verify %s
__reloc__;
__reloc__;
__err_reloc__; // expected-error {{'preserve_access_index' attribute takes no arguments}}
__reloc__;
struct __reloc__ p;
struct __reloc__ q;
;
int a __reloc__; // expected-error {{'preserve_access_index' attribute only applies to structs, unions, and classes}}
struct s *p __reloc__; // expected-error {{'preserve_access_index' attribute only applies to structs, unions, and classes}}
void // expected-error {{'preserve_access_index' attribute only applies to structs, unions, and classes}}
void // expected-error {{'preserve_access_index' attribute only applies to structs, unions, and classes}}
int
int