brintos

brintos / llvm-project-archived public Read only

0
0
Text · 682 B · 72fb6f4 Raw
12 lines · c
1// Check that -ftime-report flag is passed to compiler. The value of the flag2// is only diagnosed in the compiler for simplicity since this is a dev option.3// RUN: %clang -### -c -ftime-report %s 2>&1 | FileCheck %s4// RUN: %clang -### -c -ftime-report=per-pass %s 2>&1 | FileCheck %s -check-prefix=PER-PASS5// RUN: %clang -### -c -ftime-report=per-pass-run %s 2>&1 | FileCheck %s -check-prefix=PER-PASS-INVOKE6// RUN: %clang -### -c -ftime-report=unknown %s 2>&1 | FileCheck %s -check-prefix=UNKNOWN7 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