mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
8a31eaccbd
memory. This makes clang play nice with leak checkers. llvm-svn: 160529
21 lines
345 B
LLVM
21 lines
345 B
LLVM
; RUN: opt -globalopt -S -o - < %s | FileCheck %s
|
|
|
|
@test1 = internal global i8* null
|
|
|
|
define void @test1a() {
|
|
; CHECK: @test1a
|
|
; CHECK-NOT: store
|
|
; CHECK-NEXT: ret void
|
|
store i8* null, i8** @test1
|
|
ret void
|
|
}
|
|
|
|
define void @test1b(i8* %p) {
|
|
; CHECK: @test1b
|
|
; CHECK-NEXT: store
|
|
; CHECK-NEXT: ret void
|
|
store i8* %p, i8** @test1
|
|
ret void
|
|
}
|
|
|