summaryrefslogtreecommitdiffstats
path: root/test/Frontend/stats-file.c
blob: 53b264534c5775d7caabcc3a5192c318b4a1a30d (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm -o /dev/null -stats-file=%t %s
// RUN: FileCheck -input-file=%t %s
// CHECK: {
//  ... here come some json values ...
// CHECK: }

// RUN: %clang_cc1 -emit-llvm -o %t -stats-file=%t.doesnotexist/bla %s 2>&1 | FileCheck -check-prefix=OUTPUTFAIL %s
// OUTPUTFAIL: warning: unable to open statistics output file '{{.*}}doesnotexist{{.}}bla': '{{[Nn]}}o such file or directory'