blob: e4770288d987c0910dc60bde96fbf59e5f0c0a1b [file] [log] [blame]
Justin Bogner203f0922015-07-28 00:41:51 +00001// Ensure that declarations without definitions don't have maps emitted for them
2
Rong Xu9837ef52016-02-04 18:39:09 +00003// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s > %t
Justin Bogner203f0922015-07-28 00:41:51 +00004// FileCheck -input-file %t %s
5// RUN: FileCheck -check-prefix BAR -input-file %t %s
6
7// FOO: foo:
8// FOO-NOT: foo:
9inline int foo() { return 0; }
10extern inline int foo();
11
12// BAR: bar:
13// BAR-NOT: bar:
14int bar() { return 0; }
15extern int bar();