diff options
Diffstat (limited to 'test/Assembler/private-protected-function.ll')
-rw-r--r-- | test/Assembler/private-protected-function.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/private-protected-function.ll b/test/Assembler/private-protected-function.ll new file mode 100644 index 000000000000..5dbb420a8253 --- /dev/null +++ b/test/Assembler/private-protected-function.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s + +define private protected void @function() { +; CHECK: symbol with local linkage must have default visibility +entry: + ret void +} |