aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/Wuniv-init-ko.c
diff options
context:
space:
mode:
Diffstat (limited to 'validation/Wuniv-init-ko.c')
-rw-r--r--validation/Wuniv-init-ko.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/validation/Wuniv-init-ko.c b/validation/Wuniv-init-ko.c
new file mode 100644
index 00000000..315c211a
--- /dev/null
+++ b/validation/Wuniv-init-ko.c
@@ -0,0 +1,14 @@
+struct s {
+ void *ptr;
+};
+
+
+static struct s s = { 0 };
+
+/*
+ * check-name: univ-init-ko
+ *
+ * check-error-start
+Wuniv-init-ko.c:6:23: warning: Using plain integer as NULL pointer
+ * check-error-end
+ */