2008-01-13 02:39:25 +08:00
|
|
|
// RUN: clang -fsyntax-only -verify %s
|
2008-01-12 16:14:25 +08:00
|
|
|
|
2008-01-13 02:39:25 +08:00
|
|
|
void abcdefghi12(void) {
|
2008-01-12 16:14:25 +08:00
|
|
|
const char (*ss)[12] = &__func__;
|
2008-01-13 02:39:25 +08:00
|
|
|
static int arr[sizeof(__func__)==12 ? 1 : -1];
|
2008-01-12 16:14:25 +08:00
|
|
|
}
|
|
|
|
|
2008-01-13 02:39:25 +08:00
|
|
|
char *X = __func__; // expected-error {{predefined identifier is only valid}}
|
|
|
|
|
|
|
|
void a() {
|
|
|
|
__func__[0] = 'a'; // expected-error {{variable is not assignable}}
|
|
|
|
}
|