1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name logical.cpp %s | FileCheck %s
2*0a6a1f1dSLionel Sambuc
main()3*0a6a1f1dSLionel Sambuc int main() { // CHECK: File 0, [[@LINE]]:12 -> [[@LINE+10]]:2 = #0 (HasCodeBefore = 0)
4*0a6a1f1dSLionel Sambuc bool bt = true;
5*0a6a1f1dSLionel Sambuc bool bf = false;
6*0a6a1f1dSLionel Sambuc bool a = bt && bf; // CHECK-NEXT: File 0, [[@LINE]]:18 -> [[@LINE]]:20 = #1 (HasCodeBefore = 0)
7*0a6a1f1dSLionel Sambuc a = bt &&
8*0a6a1f1dSLionel Sambuc bf; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE]]:9 = #2 (HasCodeBefore = 0)
9*0a6a1f1dSLionel Sambuc a = bf || bt; // CHECK-NEXT: File 0, [[@LINE]]:13 -> [[@LINE]]:15 = #3 (HasCodeBefore = 0)
10*0a6a1f1dSLionel Sambuc a = bf ||
11*0a6a1f1dSLionel Sambuc bt; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE]]:9 = #4 (HasCodeBefore = 0)
12*0a6a1f1dSLionel Sambuc return 0;
13*0a6a1f1dSLionel Sambuc }
14