summaryrefslogtreecommitdiff
path: root/test/Analysis/DSGraph/2006-04-25-ZeroArrayStructUse.ll
blob: b8238f06dd344a7ce906219d29f885e3d7a4addd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: analyze %s -datastructure-gc -dsgc-check-flags=x:IA

; ModuleID = 'bug3.bc'
target endian = little
target pointersize = 32
target triple = "i686-pc-linux-gnu"


%struct.c99 = type {
        uint,
        uint,
        [0 x sbyte*] }

implementation   ; Functions:


void %foo(%struct.c99* %x) {
entry:
%B1 = getelementptr %struct.c99* %x, long 0, uint 2, uint 1
%B2 = getelementptr %struct.c99* %x, long 0, uint 2, uint 2
ret void
}