// REQUIRES: x86-registered-target // RUN: %clang -cc1 -triple x86_64 -disable-llvm-passes -S -emit-llvm -o - %s \ // RUN: | FileCheck %s // Verify that __attribute__((preserve_static_offset)) // has no effect for non-BPF target. #define __ctx __attribute__((preserve_static_offset)) struct foo { int a; } __ctx; // CHECK-NOT: @llvm_preserve_static_offset int bar(struct foo *p) { return p->a; }