2014-10-10 12:28:04 +08:00
|
|
|
// REQUIRES: clang-driver
|
|
|
|
// XFAIL: win32,win64
|
|
|
|
|
2014-10-11 01:20:10 +08:00
|
|
|
// RUN: %clang -### -S -fprofile-arcs %s 2>&1 | FileCheck -check-prefix=CHECK-GCNO-DEFAULT-LOCATION %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -S -fprofile-arcs -no-integrated-as %s 2>&1 | FileCheck -check-prefix=CHECK-GCNO-DEFAULT-LOCATION %s
|
2014-10-11 01:20:10 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs %s 2>&1 | FileCheck -check-prefix=CHECK-GCNO-DEFAULT-LOCATION %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs -no-integrated-as %s 2>&1 | FileCheck -check-prefix=CHECK-GCNO-DEFAULT-LOCATION %s
|
2014-10-11 01:20:10 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -fprofile-arcs %s -o /foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -S -fprofile-arcs -no-integrated-as %s -o /foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION %s
|
2014-10-11 01:20:10 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs %s -o /foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs -no-integrated-as %s -o /foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION %s
|
2014-10-11 01:20:10 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -fprofile-arcs %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION-REL-PATH %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -S -fprofile-arcs -no-integrated-as %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION-REL-PATH %s
|
2014-10-11 01:20:10 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION-REL-PATH %s
|
2014-10-10 12:28:04 +08:00
|
|
|
// RUN: %clang -### -c -fprofile-arcs -no-integrated-as %s -o foo/bar.o 2>&1 | FileCheck -check-prefix=CHECK-GCNO-LOCATION-REL-PATH %s
|
2014-10-11 01:20:10 +08:00
|
|
|
|
|
|
|
|
2015-07-26 12:09:41 +08:00
|
|
|
// CHECK-GCNO-DEFAULT-LOCATION: "-coverage-file" "{{.*}}{{/|\\\\}}coverage_no_integrated_as.c"
|
2014-10-10 12:28:04 +08:00
|
|
|
// CHECK-GCNO-DEFAULT-LOCATION-NOT: "-coverage-file" "/tmp/{{.*}}/coverage_no_integrated_as.c"
|
2015-07-26 12:09:41 +08:00
|
|
|
// CHECK-GCNO-LOCATION: "-coverage-file" "{{.*}}/foo/bar.o"
|
|
|
|
// CHECK-GCNO-LOCATION-REL-PATH: "-coverage-file" "{{.*}}{{/|\\\\}}foo/bar.o"
|