1 !Windows uses 0d+0a as line-endings, and the check fails.
2 !UNSUPPORTED: system-windows
7 ! Embed something that can be easily checked
8 ! RUN: %flang_fc1 -emit-llvm -o - -fembed-offload-object=%S/Inputs/hello.f90 %s 2>&1 | FileCheck %s
10 ! RUN: %flang_fc1 -emit-llvm-bc -o %t.bc %s 2>&1
11 ! RUN: %flang_fc1 -emit-llvm -o - -fembed-offload-object=%S/Inputs/hello.f90 %t.bc 2>&1 | FileCheck %s
13 ! CHECK: @[[OBJECT_1:.+]] = private constant [61 x i8] c"program hello\0A write(*,*), \22Hello world!\22\0Aend program hello\0A", section ".llvm.offloading", align 8, !exclude !0
14 ! CHECK: @llvm.compiler.used = appending global [1 x ptr] [ptr @[[OBJECT_1]]], section "llvm.metadata"
17 ! CHECK: !llvm.embedded.objects = !{![[METADATA_1:[0-9]+]]}
18 ! CHECK: ![[METADATA_1]] = !{ptr @[[OBJECT_1]], !".llvm.offloading"}