From: Paul Robinson Date: Tue, 20 Dec 2016 22:30:44 +0000 (+0000) Subject: Make a test use a specific C++ dialect X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c650f177cbd0a923d01c3d00b4899b605f8f6ec3;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/stack-reuse-miscompile.cpp b/test/CodeGenCXX/stack-reuse-miscompile.cpp index 63d15fd1e8..c355a19aa1 100644 --- a/test/CodeGenCXX/stack-reuse-miscompile.cpp +++ b/test/CodeGenCXX/stack-reuse-miscompile.cpp @@ -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