mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
fa254cb46c
This adds a warning when linker_private or linker_private_weak is provided and we handle it in a compatible manner. Suggested by Chris Lattner! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205681 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
1.0 KiB
LLVM
18 lines
1.0 KiB
LLVM
; RUN: llvm-as -o - %s | llvm-dis | FileCheck %s
|
|
; RUN: llvm-as -o /dev/null %s 2>&1 | FileCheck %s -check-prefix CHECK-WARNINGS
|
|
|
|
@.linker_private = linker_private unnamed_addr constant [15 x i8] c"linker_private\00", align 64
|
|
@.linker_private_weak = linker_private_weak unnamed_addr constant [20 x i8] c"linker_private_weak\00", align 64
|
|
|
|
; CHECK: @.linker_private = private unnamed_addr constant [15 x i8] c"linker_private\00", align 64
|
|
; CHECK: @.linker_private_weak = private unnamed_addr constant [20 x i8] c"linker_private_weak\00", align 64
|
|
|
|
; CHECK-WARNINGS: warning: '.linker_private' is deprecated, treating as PrivateLinkage
|
|
; CHECK-WARNINGS: @.linker_private = linker_private unnamed_addr constant [15 x i8] c"linker_private\00", align 64
|
|
; CHECK-WARNINGS: ^
|
|
|
|
; CHECK-WARNINGS: warning: '.linker_private_weak' is deprecated, treating as PrivateLinkage
|
|
; CHECK-WARNINGS: @.linker_private_weak = linker_private_weak unnamed_addr constant [20 x i8] c"linker_private_weak\00", align 64
|
|
; CHECK-WARNINGS: ^
|
|
|