diff options
author | Charles Li <charles.li@sony.com> | 2017-02-17 19:36:19 +0000 |
---|---|---|
committer | Charles Li <charles.li@sony.com> | 2017-02-17 19:36:19 +0000 |
commit | 71b73d0a5c75298cd26bb44ef502dbe77fbe1289 (patch) | |
tree | 5f3346f3d867acc67fe249a10e10559fd889365d /test/CodeGenCXX/volatile.cpp | |
parent | d4fdc4cc215a091ed8bdd54a7e9a9c75abf263f4 (diff) |
[Test] Make Lit tests C++11 compatible - misc
Updated 5 tests.
Differential Revision: https://reviews.llvm.org/D24812
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/volatile.cpp')
-rw-r--r-- | test/CodeGenCXX/volatile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGenCXX/volatile.cpp b/test/CodeGenCXX/volatile.cpp index ea7429f291..9c0271b21d 100644 --- a/test/CodeGenCXX/volatile.cpp +++ b/test/CodeGenCXX/volatile.cpp @@ -1,4 +1,5 @@ -// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -std=c++98 -o - | FileCheck %s +// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -std=c++11 -o - | FileCheck -check-prefix=CHECK -check-prefix=CHECK11 %s // Check that IR gen doesn't try to do an lvalue-to-rvalue conversion // on a volatile reference result. rdar://problem/8338198 @@ -27,6 +28,7 @@ namespace test1 { // CHECK-LABEL: define void @_ZN5test14testEv() void test() { // CHECK: [[TMP:%.*]] = load i32*, i32** @_ZN5test11xE, align 8 + // CHECK11-NEXT: {{%.*}} = load volatile i32, i32* [[TMP]], align 4 // CHECK-NEXT: ret void *x; } |