diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-14 23:18:33 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-14 23:18:33 +0000 |
commit | b26ff625f2b07a1493f8781035723bdfa0baa4e5 (patch) | |
tree | 5b552a121f1e1c16b314512ebc81bbb20ab8902d /test/Feature/constpointer.ll | |
parent | b4dbb4445c67fc46e56765035c2787028a66a614 (diff) | |
download | llvm-b26ff625f2b07a1493f8781035723bdfa0baa4e5.tar.gz llvm-b26ff625f2b07a1493f8781035723bdfa0baa4e5.tar.bz2 llvm-b26ff625f2b07a1493f8781035723bdfa0baa4e5.tar.xz |
Minor additions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/constpointer.ll')
-rw-r--r-- | test/Feature/constpointer.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Feature/constpointer.ll b/test/Feature/constpointer.ll index 4e1446ffe8..dcf704a439 100644 --- a/test/Feature/constpointer.ll +++ b/test/Feature/constpointer.ll @@ -8,6 +8,8 @@ %t3 = global int * %t1 ;; Forward reference %t1 = global int 4 +%t4 = global int ** %t3 ;; reference to reference + %t2 = global int * %t1 global float * %0 ;; Forward numeric reference @@ -19,5 +21,9 @@ global float * %0 ;; Numeric reference %fptr = global void() * %f ;; Forward ref method defn declare void "f"() ;; External method +%sptr1 = global [11x sbyte]* %somestr ;; Forward ref to a constant +%somestr = constant [11x sbyte] c"hello world" +%sptr2 = global [11x sbyte]* %somestr + implementation |