xref: /llvm-project/llvm/test/Other/copy-metadata-of-declaration.ll (revision 34c4fae4b296038bbfda5b37c4eb06d5a2c0650b)
1; RUN: opt -run-twice -passes=verify -S -o - %s | FileCheck %s
2
3; This test is used to check metadata attached to global variable declarations
4; are copied when CloneModule(). This is required by out-of-tree passes.
5
6; CHECK: @g = external addrspace(64) global i32, !spirv.InOut !0
7
8@g = external addrspace(64) global i32, !spirv.InOut !0
9
10!0 = !{i32 1}
11