• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Ensure that declarations without definitions don't have maps emitted for them
2 
3 // RUN: %clang_cc1 -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()9 inline int foo() { return 0; }
10 extern inline int foo();
11 
12 // BAR: bar:
13 // BAR-NOT: bar:
bar()14 int bar() { return 0; }
15 extern int bar();
16