1 // Check that -ftime-report flag is passed to compiler. The value of the flag
2 // is only diagnosed in the compiler for simplicity since this is a dev option.
3 // RUN: %clang -### -c -ftime-report %s 2>&1 | FileCheck %s
4 // RUN: %clang -### -c -ftime-report=per-pass %s 2>&1 | FileCheck %s -check-prefix=PER-PASS
5 // RUN: %clang -### -c -ftime-report=per-pass-run %s 2>&1 | FileCheck %s -check-prefix=PER-PASS-INVOKE
6 // RUN: %clang -### -c -ftime-report=unknown %s 2>&1 | FileCheck %s -check-prefix=UNKNOWN
7 
8 // CHECK:            "-ftime-report"
9 // PER-PASS:         "-ftime-report=per-pass"
10 // PER-PASS-INVOKE:  "-ftime-report=per-pass-run"
11 // UNKNOWN:          "-ftime-report=unknown"
12