diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2014-08-20 17:10:56 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2014-08-20 17:10:56 +0000 |
| commit | 01a0d062aa2f1ce042b7342e375fa27f5f77a9b3 (patch) | |
| tree | 2a4648193d5dbaec18ab4f3fae520e6a2d33615b /clang/test/CoverageMapping | |
| parent | 051fd7cc100cc680a11c88517bf4eb3d09665399 (diff) | |
| download | bcm5719-llvm-01a0d062aa2f1ce042b7342e375fa27f5f77a9b3.tar.gz bcm5719-llvm-01a0d062aa2f1ce042b7342e375fa27f5f77a9b3.zip | |
Coverage mapping: fix mapping for objective-c message expression
llvm-svn: 216081
Diffstat (limited to 'clang/test/CoverageMapping')
| -rw-r--r-- | clang/test/CoverageMapping/objc.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CoverageMapping/objc.m b/clang/test/CoverageMapping/objc.m new file mode 100644 index 00000000000..e14caa9bdb7 --- /dev/null +++ b/clang/test/CoverageMapping/objc.m @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name objc.m -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 %s | FileCheck %s + +@interface A +- (void)bork:(int)msg; +@end + + // CHECK: func +void func(A *a) { // CHECK-NEXT: File 0, [[@LINE]]:17 -> [[@LINE+3]]:2 = #0 (HasCodeBefore = 0) + if (a) + [a bork: 20 ]; // CHECK-NEXT: File 0, [[@LINE]]:5 -> [[@LINE]]:20 = #1 (HasCodeBefore = 0) +} |

