bolt/deps/llvm-18.1.8/clang/test/Sema/bpf-attr-preserve-static-offset-warns-nonbpf.c
2025-02-14 19:21:04 +01:00

6 lines
240 B
C

// RUN: %clang_cc1 -fsyntax-only -verify %s
#define __pso __attribute__((preserve_static_offset))
struct foo { int a; } __pso; // expected-warning{{unknown attribute}}
union quux { int a; } __pso; // expected-warning{{unknown attribute}}