diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-07 17:31:42 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-10-07 17:31:42 +0000 |
commit | c84c16be9b29b4f805b92bfc2d93e2dfaa952f8f (patch) | |
tree | b1151b7c8c7899327eda9b24b4903fd8b067f442 /test/Bindings | |
parent | f16c595252de363e0e1f6895a5a626bc30017053 (diff) | |
download | external_llvm-c84c16be9b29b4f805b92bfc2d93e2dfaa952f8f.zip external_llvm-c84c16be9b29b4f805b92bfc2d93e2dfaa952f8f.tar.gz external_llvm-c84c16be9b29b4f805b92bfc2d93e2dfaa952f8f.tar.bz2 |
C and Objective Caml bindings for GlobalVariable::isConstant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/Ocaml/vmcore.ml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Bindings/Ocaml/vmcore.ml b/test/Bindings/Ocaml/vmcore.ml index 0282241..8aa6e43 100644 --- a/test/Bindings/Ocaml/vmcore.ml +++ b/test/Bindings/Ocaml/vmcore.ml @@ -418,7 +418,15 @@ let test_global_variables () = *) group "delete"; let g = define_global "GVar05" fourty_two32 m in - delete_global g + delete_global g; + + (* RUN: grep -v {ConstGlobalVar.*constant} < %t.ll + *) + group "constant"; + let g = define_global "ConstGlobalVar" fourty_two32 m in + insist (not (is_global_constant g)); + set_global_constant true g; + insist (is_global_constant g) (*===-- Functions ---------------------------------------------------------===*) |