Fix the ocaml test to not create a alias to a declaration.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Mar 2014 21:20:42 +0000 (21:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 12 Mar 2014 21:20:42 +0000 (21:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203717 91177308-0d34-0410-b5e6-96231b3b80d8

test/Bindings/Ocaml/vmcore.ml

index 41cdb42fb67ee01b9d09eac8a8e7c8ac74de9b31..f014116ffe8ea0a0c0b00b890b1cc30f4a51cb8f 100644 (file)
@@ -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")