2015-07-28 08:41:51 +08:00
|
|
|
// Ensure that declarations without definitions don't have maps emitted for them
|
|
|
|
|
2016-02-05 02:39:09 +08:00
|
|
|
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s > %t
|
2015-07-28 08:41:51 +08:00
|
|
|
// FileCheck -input-file %t %s
|
|
|
|
// RUN: FileCheck -check-prefix BAR -input-file %t %s
|
|
|
|
|
|
|
|
// FOO: foo:
|
|
|
|
// FOO-NOT: foo:
|
|
|
|
inline int foo() { return 0; }
|
|
|
|
extern inline int foo();
|
|
|
|
|
|
|
|
// BAR: bar:
|
|
|
|
// BAR-NOT: bar:
|
|
|
|
int bar() { return 0; }
|
|
|
|
extern int bar();
|