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 4 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 11 12 void f(void) {} 13