llvm-for-llvmta/test/Other/copy-metadata-of-declaratio...

11 lines
347 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: opt -run-twice -verify -S -o - %s | FileCheck %s
; This test is used to check metadata attached to global variable declarations
; are copied when CloneModule(). This is required by out-of-tree passes.
; CHECK: @g = external addrspace(64) global i32, !spirv.InOut !0
@g = external addrspace(64) global i32, !spirv.InOut !0
!0 = !{i32 1}