10 lines · cpp
1// RUN: %clang_cc1 -x c++ -triple bpf-pc-linux-gnu -dwarf-version=4 -fsyntax-only -verify %s2 3#define __reloc__ __attribute__((preserve_access_index))4 5struct t1 {6 int a;7 int b[4];8 int c:1;9} __reloc__; // expected-warning {{'preserve_access_index' attribute ignored}}10