[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / threadsafe-statics.clcpp
blob3e71293e7ce7ebcd6f7915a886444007fcef8aff
1 // RUN: %clang -### -c -DNO_THREADSAFE_STATICS %s 2>&1 | FileCheck --check-prefix=CHECK-NO-THREADSAFE-STATICS %s
2 // RUN: %clang -### -fno-threadsafe-statics -DNO_THREADSAFE_STATICS -c %s 2>&1 | FileCheck --check-prefix=CHECK-NO-THREADSAFE-STATICS %s
4 // CHECK-NO-THREADSAFE-STATICS: "-cc1"
5 // CHECK-NO-THREADSAFE-STATICS: "-fno-threadsafe-statics"
6 // CHECK-NO-THREADSAFE-STATICS-NOT: "-fthreadsafe-statics"
8 // RUN: %clang -### -fthreadsafe-statics -DTHREADSAFE_STATICS -c %s 2>&1 | FileCheck --check-prefix=CHECK-THREADSAFE-STATICS %s
10 // CHECK-THREADSAFE-STATICS: "-cc1"
11 // CHECK-THREADSAFE-STATICS-NOT: "-fno-threadsafe-statics"