[ASan] Fix the tests broken by r198018 to check for private linkage of ASan-generated globals.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Alexander Potapenko 2013-12-25 17:06:04 +00:00
parent f84792ad48
commit ca523f4f3d
2 changed files with 5 additions and 5 deletions

View File

@ -16,5 +16,5 @@ declare void @_Z3fooPi(i32*)
; We create one global string constant for the stack frame above.
; It should have unnamed_addr and align 1.
; Make sure we don't create any other global constants.
; CHECK: = internal unnamed_addr constant{{.*}}align 1
; CHECK-NOT: = internal unnamed_addr constant
; CHECK: = private unnamed_addr constant{{.*}}align 1
; CHECK-NOT: = private unnamed_addr constant

View File

@ -7,9 +7,9 @@ target triple = "x86_64-unknown-linux-gnu"
declare void @Use(i8*)
; CHECK: internal unnamed_addr constant{{.*}}3 32 10 3 XXX 64 20 3 YYY 128 30 3 ZZZ
; CHECK: internal unnamed_addr constant{{.*}}3 32 5 3 AAA 64 55 3 BBB 160 555 3 CCC
; CHECK: internal unnamed_addr constant{{.*}}3 256 128 3 CCC 448 128 3 BBB 608 128 3 AAA
; CHECK: private unnamed_addr constant{{.*}}3 32 10 3 XXX 64 20 3 YYY 128 30 3 ZZZ
; CHECK: private unnamed_addr constant{{.*}}3 32 5 3 AAA 64 55 3 BBB 160 555 3 CCC
; CHECK: private unnamed_addr constant{{.*}}3 256 128 3 CCC 448 128 3 BBB 608 128 3 AAA
define void @Func1() sanitize_address {
entry: