blob: b9d4f3616ffa583691f4266d19166f56c557e6b9 [file] [log] [blame]
Rong Xu9837ef52016-02-04 18:39:09 +00001// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only %s | FileCheck %s
Justin Bogner96ae73f2015-05-01 19:23:34 +00002
3#define WHILE while (0) {}
4
5// CHECK: counters_in_macro_following_unreachable
6void counters_in_macro_following_unreachable() {
7 // CHECK-NEXT: File 0, [[@LINE-1]]:48 -> {{[0-9]+}}:2 = #0
8 return;
9 // CHECK-NEXT: Expansion,File 0, [[@LINE+2]]:3 -> [[@LINE+2]]:8 = 0
10 // CHECK-NEXT: File 0, [[@LINE+1]]:8 -> [[@LINE+2]]:2 = 0
11 WHILE
12}
13// CHECK-NEXT: File 1, 3:15 -> 3:27 = 0
14// CHECK-NEXT: File 1, 3:22 -> 3:23 = #1
15// CHECK-NEXT: File 1, 3:25 -> 3:27 = #1