1*de294c96SNAKAMURA Takumi // REQUIRES: continuous-mode 28b2bdfbcSAlan Phipps 34f2651c3SWael Yehia // RUN: %clang_profgen_cont -fcoverage-mapping -fcoverage-mcdc -O3 -o %t.exe %s 48b2bdfbcSAlan Phipps // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 3 3 58b2bdfbcSAlan Phipps // RUN: llvm-profdata show --text --all-functions %t.profraw | FileCheck %s 68b2bdfbcSAlan Phipps 78b2bdfbcSAlan Phipps // CHECK: Num Bitmap Bytes: 88b2bdfbcSAlan Phipps // CHECK-NEXT: $1 98b2bdfbcSAlan Phipps // CHECK-NEXT: Bitmap Byte Values: 1071f8b441SNAKAMURA Takumi // CHECK-NEXT: 0x4 118b2bdfbcSAlan Phipps #include <stdio.h> 128b2bdfbcSAlan Phipps #include <stdlib.h> 138b2bdfbcSAlan Phipps extern int __llvm_profile_is_continuous_mode_enabled(void); 148b2bdfbcSAlan Phipps int main(int argc, char *const argv[]) { 158b2bdfbcSAlan Phipps if (!__llvm_profile_is_continuous_mode_enabled()) 168b2bdfbcSAlan Phipps return 1; 178b2bdfbcSAlan Phipps 188b2bdfbcSAlan Phipps if (argc < 3) 198b2bdfbcSAlan Phipps return 1; 208b2bdfbcSAlan Phipps 218b2bdfbcSAlan Phipps if ((atoi(argv[1]) > 2) && (atoi(argv[2]) > 2)) { 228b2bdfbcSAlan Phipps printf("Decision Satisfied"); 238b2bdfbcSAlan Phipps } 248b2bdfbcSAlan Phipps 258b2bdfbcSAlan Phipps return 0; 268b2bdfbcSAlan Phipps } 27