double *end;
void f(bool b1, bool b2) {
{
do {
int end = 0;
if (b2) {
do {
goto end;
} while (b2);
}
end = 1;
} while (b1);
}
end:
return;
}
namespace N {
float* end;
void f(bool b1, bool b2) {
{
do {
int end = 0;
if (b2) {
do {
goto end;
} while (b2);
}
end = 1;
} while (b1);
}
end:
return;
}
}
void g() {
end = 1; }
void h(int end) {
{
goto end; }
}
void h2(int end) {
{
__label__ end;
goto end;
end:
::end = 0;
}
end: end = 1;
}
class X {
public:
X();
};
void rdar9135994()
{
X:
goto X;
}
namespace PR9495 {
struct NonPOD { NonPOD(); ~NonPOD(); };
void f(bool b) {
NonPOD np;
if (b) {
goto undeclared; }
}
void g() {
(void)^(bool b){
NonPOD np;
if (b) {
goto undeclared; }
};
}
}
extern "C" {
void exit(int);
}
void f() {
{
goto exit;
}
exit:
return;
}
namespace PR10620 {
struct S {
~S() {}
};
void g(const S& s) {
goto done; const S s2(s); done:
;
}
}
namespace test12 {
struct A { A(); A(const A&); ~A(); };
void test(A a) { goto lbl; (void) ^{ (void) a; };
lbl:
return;
}
}