summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/__null.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/__null.cpp')
-rw-r--r--clang/test/SemaCXX/__null.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/__null.cpp b/clang/test/SemaCXX/__null.cpp
index 3d78e2e8db7..798e0aa99d1 100644
--- a/clang/test/SemaCXX/__null.cpp
+++ b/clang/test/SemaCXX/__null.cpp
@@ -8,4 +8,7 @@ void f() {
// Verify statically that __null is the right size
int a[sizeof(typeof(__null)) == sizeof(void*)? 1 : -1];
+
+ // Verify that null is evaluated as 0.
+ int b[__null ? -1 : 1];
}
OpenPOWER on IntegriCloud