brintos

brintos / llvm-project-archived public Read only

0
0
Text · 878 B · ce82bee Raw
23 lines · plain
1!Windows uses 0d+0a as line-endings, and the check fails.2!UNSUPPORTED: system-windows3 4!----------5! RUN lines6!----------7! Embed something that can be easily checked8! RUN: %flang_fc1 -emit-llvm -o - -fembed-offload-object=%S/Inputs/hello.f90 %s 2>&1 | FileCheck %s9 10! RUN: %flang_fc1 -emit-llvm-bc -o %t.bc %s 2>&111! RUN: %flang_fc1 -emit-llvm -o - -fembed-offload-object=%S/Inputs/hello.f90 %t.bc 2>&1 | FileCheck %s12 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 !014! CHECK: @llvm.compiler.used = appending global [1 x ptr] [ptr @[[OBJECT_1]]], section "llvm.metadata"15 16 17! CHECK: !llvm.embedded.objects = !{![[METADATA_1:[0-9]+]]}18! CHECK: ![[METADATA_1]] = !{ptr @[[OBJECT_1]], !".llvm.offloading"}19 20parameter(i=1)21integer :: j22end program23