summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/nullability.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2015-06-29 18:11:42 +0000
committerDouglas Gregor <dgregor@apple.com>2015-06-29 18:11:42 +0000
commit4c27d104c65d0cc98d6c4c38eb6ce1ed633a5204 (patch)
treeca4accd6eee6d563634abfdbed455576e20b343d /clang/test/SemaCXX/nullability.cpp
parent8fee84d01ee57ddb1bf1308e7e781f377c2001fa (diff)
downloadbcm5719-llvm-4c27d104c65d0cc98d6c4c38eb6ce1ed633a5204.tar.gz
bcm5719-llvm-4c27d104c65d0cc98d6c4c38eb6ce1ed633a5204.zip
Make __has_feature(nullability) and __has_extension(nullability) always true.
These are _Underbar_capital-prefixed additions to the language that shouldn't depend on language standard. llvm-svn: 240976
Diffstat (limited to 'clang/test/SemaCXX/nullability.cpp')
-rw-r--r--clang/test/SemaCXX/nullability.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/nullability.cpp b/clang/test/SemaCXX/nullability.cpp
index fa5d344a953..edce6b057bd 100644
--- a/clang/test/SemaCXX/nullability.cpp
+++ b/clang/test/SemaCXX/nullability.cpp
@@ -1,5 +1,10 @@
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify
+#if __has_feature(nullability)
+#else
+# error nullability feature should be defined
+#endif
+
typedef decltype(nullptr) nullptr_t;
class X {
OpenPOWER on IntegriCloud