1// gnuwin32 printf does not work for this test because it will print \15 (CR) 2// whenever \12 (LF) is in the input string. 3UNSUPPORTED: system-windows 4// Header 5RUN: printf '\377lprofR\201' > %t 6RUN: printf '\0\0\0\0\0\0\0\12' >> %t 7RUN: printf '\0\0\0\0\0\0\0\0' >> %t 8RUN: printf '\0\0\0\0\0\0\0\2' >> %t 9RUN: printf '\0\0\0\0\0\0\0\0' >> %t 10RUN: printf '\0\0\0\0\0\0\0\3' >> %t 11RUN: printf '\0\0\0\0\0\0\0\0' >> %t 12RUN: printf '\0\0\0\0\0\0\0\4' >> %t 13RUN: printf '\0\0\0\0\0\0\0\0' >> %t 14RUN: printf '\0\0\0\0\0\0\0\20' >> %t 15RUN: printf '\0\0\0\0\1\0\0\0' >> %t 16RUN: printf '\0\0\0\0\3\0\0\0' >> %t 17RUN: printf '\0\0\0\0\2\0\0\0' >> %t 18RUN: printf '\0\0\0\0\0\0\0\0' >> %t 19RUN: printf '\0\0\0\0\0\0\0\0' >> %t 20RUN: printf '\0\0\0\0\0\0\0\0' >> %t 21 22RUN: printf '\134\370\302\114\333\030\275\254' >> %t 23RUN: printf '\0\0\0\0\0\0\0\1' >> %t 24RUN: printf '\1\0\0\0' >> %t 25RUN: printf '\3\0\0\0' >> %t 26RUN: printf '\0\0\0\0' >> %t 27RUN: printf '\0\0\0\0' >> %t 28RUN: printf '\0\0\0\1' >> %t 29RUN: printf '\0\0\0\0\0\0\0\0' >> %t 30RUN: printf '\0\0\0\3' >> %t 31 32RUN: printf '\344\023\165\112\031\035\265\067' >> %t 33RUN: printf '\0\0\0\0\0\0\0\2' >> %t 34RUN: printf '\0\xff\xff\xd8' >> %t 35RUN: printf '\2\xff\xff\xd3' >> %t 36RUN: printf '\0\0\0\0' >> %t 37RUN: printf '\0\0\0\0' >> %t 38RUN: printf '\0\0\0\2' >> %t 39RUN: printf '\0\0\0\0\0\0\0\0' >> %t 40RUN: printf '\0\0\0\1' >> %t 41 42RUN: printf '\0\0\0\0\0\0\0\023' >> %t 43RUN: printf '\0\0\0\0\0\0\0\067' >> %t 44RUN: printf '\0\0\0\0\0\0\0\101' >> %t 45RUN: printf '\125\125\125\052' >> %t 46RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t 47 48RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s 49RUN: llvm-profdata show %t -all-functions -text | FileCheck %s -check-prefix=MCDC 50 51CHECK: Counters: 52CHECK: foo: 53CHECK: Hash: 0x0000000000000001 54CHECK: Counters: 1 55CHECK: Function count: 19 56CHECK: Block counts: [] 57CHECK: bar: 58CHECK: Hash: 0x0000000000000002 59CHECK: Counters: 2 60CHECK: Function count: 55 61CHECK: Block counts: [65] 62CHECK: Functions shown: 2 63CHECK: Total functions: 2 64CHECK: Maximum function count: 55 65CHECK: Maximum internal block count: 65 66 67MCDC: Num Bitmap Bytes: 68MCDC-NEXT: $3 69MCDC-NEXT: Bitmap Byte Values: 70MCDC-NEXT: 55 71MCDC-NEXT: 55 72MCDC-NEXT: 55 73MCDC: Num Bitmap Bytes: 74MCDC-NEXT: $1 75MCDC-NEXT: Bitmap Byte Values: 76MCDC-NEXT: 0x2a 77