Just check the entire string.

Thanks to David Blaikie for the suggestion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-05-26 04:08:51 +00:00
parent a1b1165f30
commit 524b8836c2
2 changed files with 64 additions and 64 deletions

View File

@ -76,33 +76,33 @@ define weak_odr dllexport void @weak1() {
@blob_alias = dllexport alias i32 (), [6 x i8]* @blob
; CHECK: .section .drectve
; WIN32: /EXPORT:Var1,DATA"
; WIN32: /EXPORT:Var2,DATA"
; WIN32: /EXPORT:Var3,DATA"
; WIN32: /EXPORT:WeakVar1,DATA"
; WIN32: /EXPORT:WeakVar2,DATA"
; WIN32: /EXPORT:f1"
; WIN32: /EXPORT:f2"
; WIN32: /EXPORT:lnk1"
; WIN32: /EXPORT:lnk2"
; WIN32: /EXPORT:weak1"
; WIN32: /EXPORT:alias"
; WIN32: /EXPORT:alias2"
; WIN32: /EXPORT:alias3"
; WIN32: /EXPORT:weak_alias"
; WIN32: /EXPORT:blob_alias"
; MINGW: -export:Var1,data"
; MINGW: -export:Var2,data"
; MINGW: -export:Var3,data"
; MINGW: -export:WeakVar1,data"
; MINGW: -export:WeakVar2,data"
; MINGW: -export:f1"
; MINGW: -export:f2"
; MINGW: -export:lnk1"
; MINGW: -export:lnk2"
; MINGW: -export:weak1"
; MINGW: -export:alias"
; MINGW: -export:alias2"
; MINGW: -export:alias3"
; MINGW: -export:weak_alias"
; MINGW: -export:blob_alias"
; WIN32: " /EXPORT:Var1,DATA"
; WIN32: " /EXPORT:Var2,DATA"
; WIN32: " /EXPORT:Var3,DATA"
; WIN32: " /EXPORT:WeakVar1,DATA"
; WIN32: " /EXPORT:WeakVar2,DATA"
; WIN32: " /EXPORT:f1"
; WIN32: " /EXPORT:f2"
; WIN32: " /EXPORT:lnk1"
; WIN32: " /EXPORT:lnk2"
; WIN32: " /EXPORT:weak1"
; WIN32: " /EXPORT:alias"
; WIN32: " /EXPORT:alias2"
; WIN32: " /EXPORT:alias3"
; WIN32: " /EXPORT:weak_alias"
; WIN32: " /EXPORT:blob_alias"
; MINGW: " -export:Var1,data"
; MINGW: " -export:Var2,data"
; MINGW: " -export:Var3,data"
; MINGW: " -export:WeakVar1,data"
; MINGW: " -export:WeakVar2,data"
; MINGW: " -export:f1"
; MINGW: " -export:f2"
; MINGW: " -export:lnk1"
; MINGW: " -export:lnk2"
; MINGW: " -export:weak1"
; MINGW: " -export:alias"
; MINGW: " -export:alias2"
; MINGW: " -export:alias3"
; MINGW: " -export:weak_alias"
; MINGW: " -export:blob_alias"

View File

@ -93,38 +93,38 @@ define weak_odr dllexport void @weak1() {
; CHECK: .section .drectve
; CHECK-CL: /EXPORT:_Var1,DATA"
; CHECK-CL: /EXPORT:_Var2,DATA"
; CHECK-CL: /EXPORT:_Var3,DATA"
; CHECK-CL: /EXPORT:_WeakVar1,DATA"
; CHECK-CL: /EXPORT:_WeakVar2,DATA"
; CHECK-CL: /EXPORT:_f1"
; CHECK-CL: /EXPORT:_f2"
; CHECK-CL: /EXPORT:_stdfun@0"
; CHECK-CL: /EXPORT:@fastfun@0"
; CHECK-CL: /EXPORT:_thisfun"
; CHECK-CL: /EXPORT:_lnk1"
; CHECK-CL: /EXPORT:_lnk2"
; CHECK-CL: /EXPORT:_weak1"
; CHECK-CL: /EXPORT:_alias"
; CHECK-CL: /EXPORT:_alias2"
; CHECK-CL: /EXPORT:_alias3"
; CHECK-CL: /EXPORT:_weak_alias"
; CHECK-GCC: -export:Var1,data"
; CHECK-GCC: -export:Var2,data"
; CHECK-GCC: -export:Var3,data"
; CHECK-GCC: -export:WeakVar1,data"
; CHECK-GCC: -export:WeakVar2,data"
; CHECK-GCC: -export:f1"
; CHECK-GCC: -export:f2"
; CHECK-GCC: -export:stdfun@0"
; CHECK-GCC: -export:@fastfun@0"
; CHECK-GCC: -export:thisfun"
; CHECK-GCC: -export:lnk1"
; CHECK-GCC: -export:lnk2"
; CHECK-GCC: -export:weak1"
; CHECK-GCC: -export:alias"
; CHECK-GCC: -export:alias2"
; CHECK-GCC: -export:alias3"
; CHECK-GCC: -export:weak_alias"
; CHECK-CL: " /EXPORT:_Var1,DATA"
; CHECK-CL: " /EXPORT:_Var2,DATA"
; CHECK-CL: " /EXPORT:_Var3,DATA"
; CHECK-CL: " /EXPORT:_WeakVar1,DATA"
; CHECK-CL: " /EXPORT:_WeakVar2,DATA"
; CHECK-CL: " /EXPORT:_f1"
; CHECK-CL: " /EXPORT:_f2"
; CHECK-CL: " /EXPORT:_stdfun@0"
; CHECK-CL: " /EXPORT:@fastfun@0"
; CHECK-CL: " /EXPORT:_thisfun"
; CHECK-CL: " /EXPORT:_lnk1"
; CHECK-CL: " /EXPORT:_lnk2"
; CHECK-CL: " /EXPORT:_weak1"
; CHECK-CL: " /EXPORT:_alias"
; CHECK-CL: " /EXPORT:_alias2"
; CHECK-CL: " /EXPORT:_alias3"
; CHECK-CL: " /EXPORT:_weak_alias"
; CHECK-GCC: " -export:Var1,data"
; CHECK-GCC: " -export:Var2,data"
; CHECK-GCC: " -export:Var3,data"
; CHECK-GCC: " -export:WeakVar1,data"
; CHECK-GCC: " -export:WeakVar2,data"
; CHECK-GCC: " -export:f1"
; CHECK-GCC: " -export:f2"
; CHECK-GCC: " -export:stdfun@0"
; CHECK-GCC: " -export:@fastfun@0"
; CHECK-GCC: " -export:thisfun"
; CHECK-GCC: " -export:lnk1"
; CHECK-GCC: " -export:lnk2"
; CHECK-GCC: " -export:weak1"
; CHECK-GCC: " -export:alias"
; CHECK-GCC: " -export:alias2"
; CHECK-GCC: " -export:alias3"
; CHECK-GCC: " -export:weak_alias"