summaryrefslogtreecommitdiff
path: root/test/Rewriter/rewrite-cast-ivar-modern-access.mm
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2016-12-09 01:20:40 +0000
committerPaul Robinson <paul.robinson@sony.com>2016-12-09 01:20:40 +0000
commit1522ffbc2aba86928976a592066795637b749126 (patch)
tree7261fb42d9dcabb7a50159d7bfde1d3ea11d2847 /test/Rewriter/rewrite-cast-ivar-modern-access.mm
parent6a643fea5cc7bd7f3bffec675dd62c8e31f4c777 (diff)
downloadclang-1522ffbc2aba86928976a592066795637b749126.tar.gz
Specify -std=gnu++98 on some Rewriter tests. NFC.
Rewriter tests rewrite Objective-C++ to C++, and then compile the result. The rewritten result sometimes doesn't work with C++11. As we want to allow Clang's default dialect to become C++11, we need to make sure the tests will still pass. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Rewriter/rewrite-cast-ivar-modern-access.mm')
-rw-r--r--test/Rewriter/rewrite-cast-ivar-modern-access.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Rewriter/rewrite-cast-ivar-modern-access.mm b/test/Rewriter/rewrite-cast-ivar-modern-access.mm
index 4a6cb3279f..4cea4f6eb1 100644
--- a/test/Rewriter/rewrite-cast-ivar-modern-access.mm
+++ b/test/Rewriter/rewrite-cast-ivar-modern-access.mm
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
-// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
+// RUN: %clang_cc1 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
@interface F {
int supervar;