brintos

brintos / llvm-project-archived public Read only

0
0
Text · 860 B · e0feb43 Raw
28 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t; mkdir %t3; RUN: llvm-as %s -o %t/test.o4; RUN: %lld -lSystem -dylib %t/test.o -o %t/test -save-temps5; RUN: llvm-dis %t/test.0.2.internalize.bc -o - | FileCheck %s6; RUN: %lld -lSystem -dylib %t/test.o -o %t/flat-namespace.dylib -save-temps \7; RUN:   -flat_namespace8; RUN: llvm-dis %t/flat-namespace.dylib.0.2.internalize.bc -o - | FileCheck %s \9; RUN:   --check-prefix=NO-DSO-LOCAL10 11;; f() is never dso_local since it is a weak external.12; CHECK:        define weak_odr void @f()13; CHECK:        define dso_local void @main()14 15; NO-DSO-LOCAL: define weak_odr void @f()16; NO-DSO-LOCAL: define void @main()17 18target triple = "x86_64-apple-macosx10.15.0"19target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"20 21define weak_odr void @f() {22  ret void23}24 25define void @main() {26  ret void27}28