1 ; RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm \
2 ; RUN: -fembed-offload-object=%S/Inputs/empty.h \
3 ; RUN: -fembed-offload-object=%S/Inputs/empty.h -x ir %s -o - \
4 ; RUN: | FileCheck %s -check-prefix=CHECK
6 ; CHECK: @[[OBJECT_1:.+]] = private constant [0 x i8] zeroinitializer, section ".llvm.offloading", align 8, !exclude
7 ; CHECK: @[[OBJECT_2:.+]] = private constant [0 x i8] zeroinitializer, section ".llvm.offloading", align 8, !exclude
8 ; CHECK: @llvm.compiler.used = appending global [3 x ptr] [ptr @x, ptr @[[OBJECT_1]], ptr @[[OBJECT_2]]], section "llvm.metadata"
10 @x = private constant i8 1
11 @llvm.compiler.used = appending global [1 x ptr] [ptr @x], section "llvm.metadata"
17 ; CHECK: !llvm.embedded.objects = !{![[METADATA_1:[0-9]+]], ![[METADATA_2:[0-9]+]]}
18 ; CHECK: ![[METADATA_1]] = !{ptr @[[OBJECT_1]], !".llvm.offloading"}
19 ; CHECK: ![[METADATA_2]] = !{ptr @[[OBJECT_2]], !".llvm.offloading"}