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 277623f4d5.
9 lines
493 B
Common Lisp
9 lines
493 B
Common Lisp
// RUN: %clang_cc1 %s -verify
|
|
// RUN: %clang_cc1 %s -verify -cl-std=CL2.0
|
|
|
|
void f() {
|
|
char *f1 = __func__; //expected-error-re{{initializing '{{__generic|__private}} char *__private' with an expression of type 'const __constant char *' changes address space of pointer}}
|
|
constant char *f2 = __func__; //expected-warning{{initializing '__constant char *__private' with an expression of type 'const __constant char [2]' discards qualifiers}}
|
|
constant const char *f3 = __func__;
|
|
}
|