brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · ec8c954 Raw
35 lines · c
1// RUN: %clang_cc1 -dM -E -o - %s \2// RUN:   | FileCheck %s3// CHECK-NOT: #define __PIC__4// CHECK-NOT: #define __PIE__5// CHECK-NOT: #define __pic__6// CHECK-NOT: #define __pie__7//8// RUN: %clang_cc1 -pic-level 1 -dM -E -o - %s \9// RUN:   | FileCheck --check-prefix=CHECK-PIC1 %s10// CHECK-PIC1: #define __PIC__ 111// CHECK-PIC1-NOT: #define __PIE__12// CHECK-PIC1: #define __pic__ 113// CHECK-PIC1-NOT: #define __pie__14//15// RUN: %clang_cc1 -pic-level 2 -dM -E -o - %s \16// RUN:   | FileCheck --check-prefix=CHECK-PIC2 %s17// CHECK-PIC2: #define __PIC__ 218// CHECK-PIC2-NOT: #define __PIE__19// CHECK-PIC2: #define __pic__ 220// CHECK-PIC2-NOT: #define __pie__21//22// RUN: %clang_cc1 -pic-level 1 -pic-is-pie -dM -E -o - %s \23// RUN:   | FileCheck --check-prefix=CHECK-PIE1 %s24// CHECK-PIE1: #define __PIC__ 125// CHECK-PIE1: #define __PIE__ 126// CHECK-PIE1: #define __pic__ 127// CHECK-PIE1: #define __pie__ 128//29// RUN: %clang_cc1 -pic-level 2 -pic-is-pie -dM -E -o - %s \30// RUN:   | FileCheck --check-prefix=CHECK-PIE2 %s31// CHECK-PIE2: #define __PIC__ 232// CHECK-PIE2: #define __PIE__ 233// CHECK-PIE2: #define __pic__ 234// CHECK-PIE2: #define __pie__ 235