xref: /llvm-project/lld/test/MachO/invalid/protected.ll (revision 84579fc24f03c8ca778e70325dad2166f1deaee3)
1; REQUIRES: x86
2; RUN: opt -module-summary %s -o %t.o
3; RUN: not %lld -dylib -lSystem %t.o -o /dev/null 2>&1 | FileCheck %s
4; CHECK: error: _foo has protected visibility, which is not supported by Mach-O
5
6target triple = "x86_64-apple-macosx10.15.0"
7target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8
9define protected void @foo() {
10  ret void
11}
12