[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-cov / gcov47_compatibility.cpp
blobb8f4a3c511c1156f7f0325130967cf1be798fbae
1 // Make sure that llvm-cov can read coverage data written in gcov47+ compatible
2 // format.
4 // Compile with these arguments and run the result to generate .gc* files:
5 // -coverage -Xclang -coverage-no-function-names-in-data
6 // -Xclang -coverage-cfg-checksum -Xclang -coverage-version='407*'
11 // RUN: rm -rf %t
12 // RUN: mkdir %t
13 // RUN: cd %t
14 // RUN: cp %s %p/Inputs/gcov47_compatibility.gc* .
16 // RUN: llvm-cov gcov gcov47_compatibility.cpp | FileCheck %s --check-prefix=STDOUT
17 // STDOUT: File 'gcov47_compatibility.cpp'
18 // STDOUT: Lines executed:100.00% of 1
19 // STDOUT: gcov47_compatibility.cpp:creating 'gcov47_compatibility.cpp.gcov'
21 // RUN: FileCheck %s --check-prefix=GCOV < %t/gcov47_compatibility.cpp.gcov
22 // GCOV: -: 0:Runs:1
23 // GCOV: -: 0:Programs:1
25 int main(int argc, const char *argv[]) { // GCOV: -: [[@LINE]]:int main(
26 return 0; // GCOV: 1: [[@LINE]]: return
27 } // GCOV: -: [[@LINE]]:}
29 // llvm-cov doesn't work on big endian yet
30 // XFAIL: host-byteorder-big-endian