aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/debug-pass-structure.c
blob: c22c3f3255ef4d72f0f121bcb8a1a1a7a3136aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Test that we print pass structure with new and legacy PM.
// RUN: %clang -fdebug-pass-structure -fintegrated-as -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --strict-whitespace
// REQUIRES: asserts

// should have proper indentation, should not print any analysis information
// CHECK-NOT: Running analysis
// CHECK: {{^}}Running{{.*}}GlobalOptPass
// CHECK: {{^}}  Running{{.*}}RequireAnalysisPass{{.*}}GlobalsAA
// CHECK: GlobalOptPass
// CHECK-NOT: Invalidating analysis

void f(void) {}