test case for -Wwrite-strings
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 13:02:10 +0000 (13:02 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sun, 31 Aug 2008 13:02:10 +0000 (13:02 +0000)
[r21588]

parsetest/should_warn/write_strings.c [new file with mode: 0644]

diff --git a/parsetest/should_warn/write_strings.c b/parsetest/should_warn/write_strings.c
new file mode 100644 (file)
index 0000000..f4125e0
--- /dev/null
@@ -0,0 +1,8 @@
+#include <wchar.h>
+
+int main(int argc, char *argv[]) {
+       char *p = "hallo";
+       wchar_t *w = L"hallo";
+
+       return 0;
+}