13 lines · c
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-whitespace3// REQUIRES: asserts4 5// should have proper indentation, should not print any analysis information6// CHECK-NOT: Running analysis7// CHECK: {{^}}Running{{.*}}GlobalOptPass8// CHECK: {{^}} Running{{.*}}RequireAnalysisPass{{.*}}GlobalsAA9// CHECK: GlobalOptPass10// CHECK-NOT: Invalidating analysis11 12void f(void) {}13