diff options
author | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-02-28 09:46:27 +0000 |
---|---|---|
committer | Erick Tryzelaar <idadesub@users.sourceforge.net> | 2010-02-28 09:46:27 +0000 |
commit | 5b0a7741ad262315d6365250a2da2edb8ba37e69 (patch) | |
tree | f7cd5ddb7655c00ce7bd07bb4c3b6fb2ff043d0b /test/Bindings | |
parent | d80ce75687c22e63d746d732b4e28fd5a1207a9d (diff) | |
download | external_llvm-5b0a7741ad262315d6365250a2da2edb8ba37e69.zip external_llvm-5b0a7741ad262315d6365250a2da2edb8ba37e69.tar.gz external_llvm-5b0a7741ad262315d6365250a2da2edb8ba37e69.tar.bz2 |
Add support for getting a null pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/Ocaml/vmcore.ml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Bindings/Ocaml/vmcore.ml b/test/Bindings/Ocaml/vmcore.ml index 379cde1..44cdd84 100644 --- a/test/Bindings/Ocaml/vmcore.ml +++ b/test/Bindings/Ocaml/vmcore.ml @@ -315,6 +315,13 @@ let test_constants () = group "all ones"; let c = const_all_ones i64_type in ignore (define_global "const_all_ones" c m); + + group "pointer null"; begin + (* RUN: grep {const_pointer_null = global i64\\* null} < %t.ll + *) + let c = const_pointer_null (pointer_type i64_type) in + ignore (define_global "const_pointer_null" c m); + end; (* RUN: grep {const_undef.*undef} < %t.ll *) |