[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / debug-pass-structure.c
blobc22c3f3255ef4d72f0f121bcb8a1a1a7a3136aa0
1 // Test that we print pass structure with new and legacy PM.
2 // RUN: %clang -fdebug-pass-structure -fintegrated-as -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --strict-whitespace
3 // REQUIRES: asserts
5 // should have proper indentation, should not print any analysis information
6 // CHECK-NOT: Running analysis
7 // CHECK: {{^}}Running{{.*}}GlobalOptPass
8 // CHECK: {{^}} Running{{.*}}RequireAnalysisPass{{.*}}GlobalsAA
9 // CHECK: GlobalOptPass
10 // CHECK-NOT: Invalidating analysis
12 void f(void) {}