[DAG] Allow AssertZExt to scalarize. (#122463)
[llvm-project.git] / clang / test / CodeGen / bpf-preserve-static-offset-non-bpf.c
blob0ddf603856a4478f77f2f0e7a286ccfd4c6daf48
1 // REQUIRES: x86-registered-target
2 // RUN: %clang_cc1 -triple x86_64 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s
4 // Verify that __attribute__((preserve_static_offset))
5 // has no effect for non-BPF target.
7 #define __ctx __attribute__((preserve_static_offset))
9 struct foo {
10 int a;
11 } __ctx;
13 // CHECK-NOT: @llvm_preserve_static_offset
15 int bar(struct foo *p) {
16 return p->a;