mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-10 20:16:07 +00:00
13 lines
346 B
LLVM
13 lines
346 B
LLVM
; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-check-flags=G:GIM -dsgc-dspass=bu &&\
|
|
; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-check-flags=G:GIM -dsgc-dspass=td
|
|
|
|
%S = type { double, int }
|
|
|
|
%G = external global %S
|
|
|
|
void %main() {
|
|
%b = getelementptr %S* %G, long 0, ubyte 0
|
|
store double 0.1, double* %b
|
|
ret void
|
|
}
|