[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / piclevels.c
blob7127f0422431426088103ac96daf48393d292b9c
1 // RUN: %clang_cc1 -emit-llvm -pic-level 2 %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC -check-prefix=CHECK-NOPIE
2 // RUN: %clang_cc1 -emit-llvm -pic-level 1 %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC -check-prefix=CHECK-NOPIE
3 // RUN: %clang_cc1 -emit-llvm -pic-level 2 -pic-is-pie %s -o - | FileCheck %s -check-prefix=CHECK-BIGPIC -check-prefix=CHECK-BIGPIE
4 // RUN: %clang_cc1 -emit-llvm -pic-level 1 -pic-is-pie %s -o - | FileCheck %s -check-prefix=CHECK-SMALLPIC -check-prefix=CHECK-SMALLPIE
6 // CHECK-BIGPIC: !llvm.module.flags = !{{{.*}}}
7 // CHECK-BIGPIC: ![[#]] = !{i32 8, !"PIC Level", i32 2}
8 // CHECK-SMALLPIC: !llvm.module.flags = !{{{.*}}}
9 // CHECK-SMALLPIC: ![[#]] = !{i32 8, !"PIC Level", i32 1}
10 // CHECK-NOPIE-NOT: PIE Level
11 // CHECK-BIGPIE: ![[#]] = !{i32 7, !"PIE Level", i32 2}
12 // CHECK-SMALLPIE: ![[#]] = !{i32 7, !"PIE Level", i32 1}