aboutsummaryrefslogtreecommitdiff
path: root/test/NaCl/Bitcode
diff options
context:
space:
mode:
Diffstat (limited to 'test/NaCl/Bitcode')
-rw-r--r--test/NaCl/Bitcode/globalvars.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/NaCl/Bitcode/globalvars.ll b/test/NaCl/Bitcode/globalvars.ll
index c6e6f2f17a..fd1f8eead2 100644
--- a/test/NaCl/Bitcode/globalvars.ll
+++ b/test/NaCl/Bitcode/globalvars.ll
@@ -4,9 +4,17 @@
; Test that we generate appropriate bitcode values for global variables.
+; Make sure that no struct/array types are generated by the global variables.
+; BC: <TYPE_BLOCK_ID
+; BC-NEXT: <NUMENTRY
+; BC-NEXT: <VOID/>
+; BC-NEXT: <FUNCTION
+; BC-NEXT: <POINTER
+; BC-NEXT: </TYPE_BLOCK_ID>
+
; Make sure that the function declaration for function func (below)
; appears before the global variables block.
-; BC: <FUNCTION op0=5 op1=0 op2=0 op3=0/>
+; BC: <FUNCTION op0=2 op1=0 op2=0 op3=0/>
; Make sure we begin the globals block after function declarations.
; BC-NEXT: <GLOBALVAR_BLOCK