Justin Bogner | 203f092 | 2015-07-28 00:41:51 +0000 | [diff] [blame] | 1 | // Ensure that declarations without definitions don't have maps emitted for them |
| 2 | |
Rong Xu | 9837ef5 | 2016-02-04 18:39:09 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s > %t |
Justin Bogner | 203f092 | 2015-07-28 00:41:51 +0000 | [diff] [blame] | 4 | // FileCheck -input-file %t %s |
| 5 | // RUN: FileCheck -check-prefix BAR -input-file %t %s |
| 6 | |
| 7 | // FOO: foo: |
| 8 | // FOO-NOT: foo: |
| 9 | inline int foo() { return 0; } |
| 10 | extern inline int foo(); |
| 11 | |
| 12 | // BAR: bar: |
| 13 | // BAR-NOT: bar: |
| 14 | int bar() { return 0; } |
| 15 | extern int bar(); |