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