diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-12 21:20:42 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-12 21:20:42 +0000 |
commit | 9367c49f5de071784c732bbafeb66bf6a56c040f (patch) | |
tree | 2505d1924469414e214468bd41723012323a841a /test/Bindings | |
parent | 3b06b730357209adf626b1f28b952c39ed315975 (diff) | |
download | llvm-9367c49f5de071784c732bbafeb66bf6a56c040f.tar.gz llvm-9367c49f5de071784c732bbafeb66bf6a56c040f.tar.bz2 llvm-9367c49f5de071784c732bbafeb66bf6a56c040f.tar.xz |
Fix the ocaml test to not create a alias to a declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/Ocaml/vmcore.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Bindings/Ocaml/vmcore.ml b/test/Bindings/Ocaml/vmcore.ml index 41cdb42fb6..f014116ffe 100644 --- a/test/Bindings/Ocaml/vmcore.ml +++ b/test/Bindings/Ocaml/vmcore.ml @@ -581,7 +581,8 @@ let test_users () = let test_aliases () = (* CHECK: @alias = alias i32* @aliasee *) - let v = declare_global i32_type "aliasee" m in + let forty_two32 = const_int i32_type 42 in + let v = define_global "aliasee" forty_two32 m in ignore (add_alias m (pointer_type i32_type) v "alias") |