[llvm] r203468 - Add test for LinkModules warning on triple, modified by r203009. Datalayout is already tested.
Pete Cooper
peter_cooper at apple.com
Mon Mar 10 20:27:31 PDT 2014
Hi JF
Similarly to the datalayout.ll test, this one is also triggering a failure on our GuardMalloc buildbot. Would it be possible to check for something other than FileCheck being empty?
Thanks,
Pete
On Mar 10, 2014, at 8:54 AM, JF Bastien <jfb at google.com> wrote:
> Author: jfb
> Date: Mon Mar 10 10:54:49 2014
> New Revision: 203468
>
> URL: http://llvm.org/viewvc/llvm-project?rev=203468&view=rev
> Log:
> Add test for LinkModules warning on triple, modified by r203009. Datalayout is already tested.
>
> Added:
> llvm/trunk/test/Linker/Inputs/targettriple-a.ll
> llvm/trunk/test/Linker/Inputs/targettriple-b.ll
> llvm/trunk/test/Linker/targettriple.ll
>
> Added: llvm/trunk/test/Linker/Inputs/targettriple-a.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/targettriple-a.ll?rev=203468&view=auto
> ==============================================================================
> --- llvm/trunk/test/Linker/Inputs/targettriple-a.ll (added)
> +++ llvm/trunk/test/Linker/Inputs/targettriple-a.ll Mon Mar 10 10:54:49 2014
> @@ -0,0 +1 @@
> +target triple = "e"
>
> Added: llvm/trunk/test/Linker/Inputs/targettriple-b.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/Inputs/targettriple-b.ll?rev=203468&view=auto
> ==============================================================================
> --- llvm/trunk/test/Linker/Inputs/targettriple-b.ll (added)
> +++ llvm/trunk/test/Linker/Inputs/targettriple-b.ll Mon Mar 10 10:54:49 2014
> @@ -0,0 +1 @@
> +target triple = "E"
>
> Added: llvm/trunk/test/Linker/targettriple.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/targettriple.ll?rev=203468&view=auto
> ==============================================================================
> --- llvm/trunk/test/Linker/targettriple.ll (added)
> +++ llvm/trunk/test/Linker/targettriple.ll Mon Mar 10 10:54:49 2014
> @@ -0,0 +1,14 @@
> +; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
> +; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
> +
> +; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
> +; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
> +
> +target triple = "e"
> +
> +; CHECK: target triple = "e"
> +
> +; this is a hack to check that llvm-link printed no warnings.
> +; WARN-A: FileCheck error: '-' is empty.
> +
> +; WARN-B: WARNING: Linking two modules of different target triples:
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list