Author: probinson Date: Tue Dec 20 16:30:44 2016 New Revision: 290208 URL: http://llvm.org/viewvc/llvm-project?rev=290208&view=rev Log: Make a test use a specific C++ dialect
In stack-reuse-miscompile.cpp, the allocas for the temps come out in a different order depending on whether the dialect is C++03 or C++11. Specify C++03 explicitly to avoid depending on the default. Differential Revision: http://reviews.llvm.org/D27956 Modified: cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp Modified: cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp?rev=290208&r1=290207&r2=290208&view=diff ============================================================================== --- cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp (original) +++ cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp Tue Dec 20 16:30:44 2016 @@ -1,4 +1,4 @@ -// RUN: %clang -S -target armv7l-unknown-linux-gnueabihf -emit-llvm -O1 -mllvm -disable-llvm-optzns -S %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple armv7l-unknown-linux-gnueabihf -emit-llvm -O1 -disable-llvm-optzns -std=c++03 %s -o - | FileCheck %s // This test should not to generate llvm.lifetime.start/llvm.lifetime.end for // f function because all temporary objects in this function are used for the _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits