+
+# RUN: llvm-profdata show %S/Inputs/compat.profdata.v2 -all-functions --counts | FileCheck %s -check-prefix=FORMATV2
+
+# FORMATV2: Counters:
+# FORMATV2-NEXT: foo:
+# FORMATV2-NEXT: Hash: 0x000000000000000a
+# FORMATV2-NEXT: Counters: 2
+# FORMATV2-NEXT: Function count: 499500
+# FORMATV2-NEXT: Block counts: [179900]
+# FORMATV2-NEXT: main:
+# FORMATV2-NEXT: Hash: 0x000000000000410a
+# FORMATV2-NEXT: Counters: 4
+# FORMATV2-NEXT: Function count: 1
+# FORMATV2-NEXT: Block counts: [1000, 1000000, 499500]
+# FORMATV2-NEXT: Functions shown: 2
+# FORMATV2-NEXT: Total functions: 2
+# FORMATV2-NEXT: Maximum function count: 499500
+# FORMATV2-NEXT: Maximum internal block count: 1000000
+
+