aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/conversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/conversion.cpp')
-rw-r--r--test/SemaCXX/conversion.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/SemaCXX/conversion.cpp b/test/SemaCXX/conversion.cpp
index d9ba07ab5b..b069abc263 100644
--- a/test/SemaCXX/conversion.cpp
+++ b/test/SemaCXX/conversion.cpp
@@ -53,14 +53,10 @@ namespace test2 {
};
}
-// This file tests -Wnull-conversion, a subcategory of -Wconversion
-// which is on by default.
-
void test3() {
int a = NULL; // expected-warning {{implicit conversion of NULL constant to integer}}
int b;
b = NULL; // expected-warning {{implicit conversion of NULL constant to integer}}
- long l = NULL; // FIXME: this should also warn, but currently does not if sizeof(NULL)==sizeof(inttype)
int c = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to integer}}
int d;
d = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to integer}}