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