forked from OSchip/llvm-project
parent
74af4bc134
commit
336a15e041
|
@ -2,11 +2,17 @@
|
|||
|
||||
// PR9463
|
||||
double *end;
|
||||
void f() {
|
||||
void f(bool b1, bool b2) {
|
||||
{
|
||||
int end = 0;
|
||||
goto end;
|
||||
end = 1;
|
||||
do {
|
||||
int end = 0;
|
||||
if (b2) {
|
||||
do {
|
||||
goto end;
|
||||
} while (b2);
|
||||
}
|
||||
end = 1;
|
||||
} while (b1);
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
|
@ -27,7 +27,8 @@ void f3(S3* p, void (S3::*m)()) {
|
|||
(void)(void*)(p->*m); // expected-error {{a bound member function may only be called}}
|
||||
(void)reinterpret_cast<void*>(p->*m); // expected-error {{a bound member function may only be called}}
|
||||
if (p->*m) {} // expected-error {{a bound member function may only be called}}
|
||||
if (!p->*m) {} // expected-error {{a bound member function may only be called}}
|
||||
if (!p->*m) {} // FIXME: xpected-error {{a bound member function may only be called}} \
|
||||
// expected-error{{left hand operand to ->* must be a pointer to class compatible with the right hand operand, but is 'bool'}}
|
||||
if (p->m) {}; // expected-error {{a bound member function may only be called}}
|
||||
if (!p->m) {}; // expected-error {{a bound member function may only be called}}
|
||||
if (!p->m) {}; // FIXME: xpected-error {{a bound member function may only be called}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue