2016-02-05 02:39:09 +08:00
|
|
|
// RUN: %clang_cc1 -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name logical.cpp %s | FileCheck %s
|
2014-08-20 01:32:30 +08:00
|
|
|
|
2015-02-04 05:35:49 +08:00
|
|
|
int main() { // CHECK: File 0, [[@LINE]]:12 -> [[@LINE+10]]:2 = #0
|
2014-08-20 01:32:30 +08:00
|
|
|
bool bt = true;
|
|
|
|
bool bf = false;
|
2015-02-04 05:35:49 +08:00
|
|
|
bool a = bt && bf; // CHECK-NEXT: File 0, [[@LINE]]:18 -> [[@LINE]]:20 = #1
|
2014-08-20 01:32:30 +08:00
|
|
|
a = bt &&
|
2015-02-04 05:35:49 +08:00
|
|
|
bf; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE]]:9 = #2
|
|
|
|
a = bf || bt; // CHECK-NEXT: File 0, [[@LINE]]:13 -> [[@LINE]]:15 = #3
|
2014-08-20 01:32:30 +08:00
|
|
|
a = bf ||
|
2015-02-04 05:35:49 +08:00
|
|
|
bt; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE]]:9 = #4
|
2014-08-20 01:32:30 +08:00
|
|
|
return 0;
|
|
|
|
}
|