Looks like lldb has some issues with this - somehow it causes lldb to treat a "char[N]" type as an array of chars (prints them out individually) but a "char [N]" is printed as a string. (even though the DWARF doesn't have this string in it - it's something to do with the string lldb generates for itself using clang) This reverts commit 277623f4d5a672d707390e2c3eaf30a9eb4b075c.
11 lines
279 B
C
11 lines
279 B
C
// RUN: %clang_cc1 -verify -fsyntax-only -fconst-strings %s
|
|
|
|
// PR4804
|
|
char* x = "foo"; // expected-warning {{initializing 'char *' with an expression of type 'const char [4]' discards qualifiers}}
|
|
|
|
// PR7192
|
|
#include <stddef.h>
|
|
void test(wchar_t *dst) {
|
|
dst[0] = 0; // Ok.
|
|
}
|