xref: /llvm-project/clang/test/Sema/bpf-attr-preserve-static-offset-warns-nonbpf.c (revision 030b8cb1561db4161b108b59044717d89026cf70)
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 #define __pso __attribute__((preserve_static_offset))
4 
5 struct foo { int a; } __pso; // expected-warning{{unknown attribute}}
6 union quux { int a; } __pso; // expected-warning{{unknown attribute}}
7