blob: 469b2992ecd7beeba6b5c89bc30e56801fbdbac6 [file] [log] [blame]
Alex Lorenz34ac9b52014-08-19 17:32:30 +00001// Check the data structures emitted by coverage mapping
Rong Xu9837ef52016-02-04 18:39:09 +00002// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -main-file-name ir.c %s -o - -emit-llvm -fprofile-instrument=clang -fcoverage-mapping | FileCheck %s
Alex Lorenz34ac9b52014-08-19 17:32:30 +00003
4
5void foo(void) { }
6
7int main(void) {
8 foo();
9 return 0;
10}
11
Xinliang David Li534ace02016-02-17 00:58:13 +000012// CHECK: @__llvm_coverage_mapping = internal constant { { i32, i32, i32, i32 }, [2 x <{ i64, i32, i64 }>], [{{[0-9]+}} x i8] } { { i32, i32, i32, i32 } { i32 2, i32 {{[0-9]+}}, i32 {{[0-9]+}}, i32 {{[0-9]+}} }, [2 x <{ i64, i32, i64 }>] [<{{.*}}> <{{.*}}>, <{{.*}}> <{{.*}}>]