1; RUN: llvm-extract -func foo -keep-const-init -S < %s | FileCheck %s
2; RUN: llvm-extract -func foo -S < %s | FileCheck %s --check-prefix=CHECK2
3
4; CHECK: @cv = constant i32 0
5; CHECK2: @cv = external constant i32
6
7@cv = constant i32 0
8
9define i32 @foo() {
10  %v = load i32, i32* @cv
11  ret i32 %v
12}
13