summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2016-06-20 10:19:00 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2016-06-20 10:19:00 +0000
commita83706e354705188606bbb857a4d6703c3284d1c (patch)
tree88cf43876f426ba7e1989c4e4a1faa3b4cb55538 /lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
parentc31fee22122c0b7546a8f853252456402a226253 (diff)
downloadbcm5719-llvm-a83706e354705188606bbb857a4d6703c3284d1c.tar.gz
bcm5719-llvm-a83706e354705188606bbb857a4d6703c3284d1c.zip
Avoid output indeterminism between GCC and Clang builds.
Remove dependency of the evalution order of function arguments, which is unspecified. The following test previously failed when built with GCC (but succeded when built with Clang): ; RUN: opt -sroa -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" %A = type {i16} @a = global %A* null @b = global i16 0 ; CHECK-LABEL: @f1( ; CHECK: alloca %A ; CHECK-NEXT: extractvalue %A ; CHECK-NEXT: getelementptr inbounds %A define void @f1 (%A %a) { %1 = alloca %A store %A %a, %A* %1 %2 = load i16, i16* @b %3 = icmp ne i16 %2, 0 br i1 %3, label %bb1, label %bb2 bb1: store %A* %1, %A** @a br label %bb2 bb2: ret void } Patch by David Stenberg. Differential Revision: http://reviews.llvm.org/D21226 llvm-svn: 273144
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud