Alex Lorenz | 01a0d06 | 2014-08-20 17:10:56 +0000 | [diff] [blame^] | 1 | // 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 |
| 2 | |
| 3 | @interface A |
| 4 | - (void)bork:(int)msg; |
| 5 | @end |
| 6 | |
| 7 | // CHECK: func |
| 8 | void func(A *a) { // CHECK-NEXT: File 0, [[@LINE]]:17 -> [[@LINE+3]]:2 = #0 (HasCodeBefore = 0) |
| 9 | if (a) |
| 10 | [a bork: 20 ]; // CHECK-NEXT: File 0, [[@LINE]]:5 -> [[@LINE]]:20 = #1 (HasCodeBefore = 0) |
| 11 | } |