; RUN: llvm-as -function-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC
; Check for function summary block/records.
+; Check the value ids in the function summary entries against the
+; same in the ValueSumbolTable, to ensure the ordering is stable.
+; Also check the islocal flag on the summary entries.
; BC: <FUNCTION_SUMMARY_BLOCK
-; BC-NEXT: <PERMODULE_ENTRY
-; BC-NEXT: <PERMODULE_ENTRY
-; BC-NEXT: <PERMODULE_ENTRY
+; BC-NEXT: <PERMODULE_ENTRY {{.*}} op0=1 op1=0
+; BC-NEXT: <PERMODULE_ENTRY {{.*}} op0=2 op1=0
+; BC-NEXT: <PERMODULE_ENTRY {{.*}} op0=4 op1=1
; BC-NEXT: </FUNCTION_SUMMARY_BLOCK
+; BC-NEXT: <VALUE_SYMTAB
+; BC-NEXT: <FNENTRY {{.*}} op0=1 {{.*}}> record string = 'foo'
+; BC-NEXT: <FNENTRY {{.*}} op0=2 {{.*}}> record string = 'bar'
+; BC-NEXT: <FNENTRY {{.*}} op0=4 {{.*}}> record string = 'f'
; RUN: llvm-as -function-summary < %s | llvm-dis | FileCheck %s
; Check that this round-trips correctly.