You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
277 B

; RUN: opt < %s -instcombine -disable-output
%opaque_struct = type opaque
@G = external global [0 x %opaque_struct]
declare void @foo(%opaque_struct*)
define void @bar() {
call void @foo(%opaque_struct* bitcast ([0 x %opaque_struct]* @G to %opaque_struct*))
ret void
}