xref: /llvm-project/lld/test/MachO/invalid/no-bitcode-support.ll (revision 48e5f704c55f406e0bdbd989434c8b3777b27fe4)
1*48e5f704SKeith Smiley; REQUIRES: x86
2*48e5f704SKeith Smiley; RUN: opt -module-summary %s -o %t.o
3*48e5f704SKeith Smiley; RUN: not %lld -lSystem -bitcode_bundle %t.o -o /dev/null 2>&1 | FileCheck %s
4*48e5f704SKeith Smiley; CHECK: error: Option `-bitcode_bundle' is obsolete. Please modernize your usage.
5*48e5f704SKeith Smiley
6*48e5f704SKeith Smileytarget triple = "x86_64-apple-darwin"
7*48e5f704SKeith Smileytarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8*48e5f704SKeith Smiley
9*48e5f704SKeith Smileydefine void @main() {
10*48e5f704SKeith Smiley  ret void
11*48e5f704SKeith Smiley}
12