[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / time-report.c
blob72fb6f4550b81cd24d25521ee9887d746455e15e
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
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"