summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/trigraphs.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-12-23 22:32:37 +0000
committerNico Weber <nicolasweber@gmx.de>2014-12-23 22:32:37 +0000
commit007215044b48de0ebf32a44c77326c9634b35bdc (patch)
tree03958c6a76a21f2c6d634bcbba5a6db0ce14bf89 /clang/test/Frontend/trigraphs.cpp
parent9fdeb37bd346089488c5fe77a7edf16ee2f34cb1 (diff)
downloadbcm5719-llvm-007215044b48de0ebf32a44c77326c9634b35bdc.tar.gz
bcm5719-llvm-007215044b48de0ebf32a44c77326c9634b35bdc.zip
Add driver flags -ftrigraphs, -fno-trigraphs.
-trigraphs is now an alias for -ftrigraphs. -fno-trigraphs makes it possible to explicitly disable trigraphs, which couldn't be done before. clang -std=c++11 -fno-trigraphs now builds without GNU extensions, but with trigraphs disabled. Previously, trigraphs were only disabled in GNU modes or with -std=c++1z. Make the new -f flags the cc1 interface too. This requires changing -trigraphs to -ftrigraphs in a few cc1 tests. Related to PR21974. llvm-svn: 224790
Diffstat (limited to 'clang/test/Frontend/trigraphs.cpp')
-rw-r--r--clang/test/Frontend/trigraphs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/trigraphs.cpp b/clang/test/Frontend/trigraphs.cpp
index 4b04bcbe130..552078951ae 100644
--- a/clang/test/Frontend/trigraphs.cpp
+++ b/clang/test/Frontend/trigraphs.cpp
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 -DSTDCPP11 -std=c++11 -verify -fsyntax-only %s
// RUN: %clang_cc1 -DSTDGNU11 -std=gnu++11 -verify -fsyntax-only %s
-// RUN: %clang_cc1 -DSTDGNU11TRI -trigraphs -std=gnu++11 -verify -fsyntax-only %s
+// RUN: %clang_cc1 -DSTDGNU11TRI -ftrigraphs -std=gnu++11 -verify -fsyntax-only %s
// RUN: %clang_cc1 -DSTDCPP17 -std=c++1z -verify -fsyntax-only %s
-// RUN: %clang_cc1 -DSTDCPP17TRI -trigraphs -std=c++1z -verify -fsyntax-only %s
+// RUN: %clang_cc1 -DSTDCPP17TRI -ftrigraphs -std=c++1z -verify -fsyntax-only %s
// RUN: %clang_cc1 -DMSCOMPAT -fms-compatibility -std=c++11 -verify -fsyntax-only %s
void foo() {
OpenPOWER on IntegriCloud