xref: /llvm-project/clang/test/CoverageMapping/decl.c (revision 25098736c1b6a716711a64fa45f7f34ccdbef6d1)
1 // Ensure that declarations without definitions don't have maps emitted for them
2 
3 // RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s > %t
4 // FileCheck -input-file %t %s
5 // RUN: FileCheck -check-prefix BAR -input-file %t %s
6 
7 // FOO: foo:
8 // FOO-NOT: foo:
foo(void)9 inline int foo(void) { return 0; }
10 extern inline int foo(void);
11 
12 // BAR: bar:
13 // BAR-NOT: bar:
bar(void)14 int bar(void) { return 0; }
15 extern int bar(void);
16