summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_nullptr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Checks/cm_cxx_nullptr.cxx')
-rw-r--r--Source/Checks/cm_cxx_nullptr.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_nullptr.cxx b/Source/Checks/cm_cxx_nullptr.cxx
new file mode 100644
index 0000000..500684a
--- /dev/null
+++ b/Source/Checks/cm_cxx_nullptr.cxx
@@ -0,0 +1,14 @@
+int test(int)
+{
+ return -1;
+}
+
+int test(int*)
+{
+ return 0;
+}
+
+int main()
+{
+ return test(nullptr);
+}