annotate clang/test/Preprocessor/bpf-predefined-macros.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang -E -target bpfel -x c -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2 // RUN: %clang -E -target bpfeb -x c -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 #ifdef __bpf__
anatofuz
parents:
diff changeset
5 int b;
anatofuz
parents:
diff changeset
6 #endif
anatofuz
parents:
diff changeset
7 #ifdef __BPF__
anatofuz
parents:
diff changeset
8 int c;
anatofuz
parents:
diff changeset
9 #endif
anatofuz
parents:
diff changeset
10 #ifdef bpf
anatofuz
parents:
diff changeset
11 int d;
anatofuz
parents:
diff changeset
12 #endif
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 // CHECK: int b;
anatofuz
parents:
diff changeset
15 // CHECK: int c;
anatofuz
parents:
diff changeset
16 // CHECK-NOT: int d;