From: Michael Beck Date: Sun, 31 Aug 2008 13:02:10 +0000 (+0000) Subject: test case for -Wwrite-strings X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=50cb35c7b79803e200404c96f4402d32115b8324;p=cparser test case for -Wwrite-strings [r21588] --- diff --git a/parsetest/should_warn/write_strings.c b/parsetest/should_warn/write_strings.c new file mode 100644 index 0000000..f4125e0 --- /dev/null +++ b/parsetest/should_warn/write_strings.c @@ -0,0 +1,8 @@ +#include + +int main(int argc, char *argv[]) { + char *p = "hallo"; + wchar_t *w = L"hallo"; + + return 0; +}