aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/bpf-attr-preserve-static-offset-warns-nonbpf.c
blob: d543e6f999529d0a96539c2879f7b677472ed6c1 (plain)
1
2
3
4
5
6
// 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}}