代码搜索:LABEL
找到约 10,000 项符合「LABEL」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4582347
c label2.c
// { dg-do run }
// { dg-options "" }
// Origin: Mark Mitchell
template
int f ()
{
int i = 0;
int j = 0;
int k = 0;
l:
if (j)
return 0;
({
__lab
www.eeworm.com/read/240162/4582358
c label1.c
// { dg-do run }
// { dg-options "" }
// Origin: Mark Mitchell
int main ()
{
int i = 0;
int j = 0;
int k = 0;
l:
if (j)
return 0;
({
__label__ l;
k =
www.eeworm.com/read/240162/4589608
c label-1.c
/* Test various diagnostics of ill-formed constructs involving labels. */
/* { dg-do compile } */
/* { dg-options "-Wunused" } */
extern void dummy(void);
/* labels must be defined */
void a(void)
www.eeworm.com/read/233448/4671239
c label2.c
// { dg-options "" }
template
void f() {
l:
void *p[] = { &&l };
goto *p;
}
template void f();
www.eeworm.com/read/233448/4671324
c label1.c
// { dg-options "" }
int main(void) {
static const void* lbls[2][2] = {{&&lbl0, &&lbl0}, {&&lbl0, &&lbl0}};
goto *lbls[0];
lbl0:
;
}
www.eeworm.com/read/233448/4671381
c label3.c
// Bug: we were removing the p = q assignment in dce, and then reinserting
// it *after* the try/catch in out-of-ssa. Oops.
// testcase reduced from libjava/interpret.cc.
// { dg-do run }
// { dg-o
www.eeworm.com/read/233448/4674124
c label1.c
// { dg-do assemble }
template
struct S {};
template
inline void g(T t)
{
here:
S st;
goto here;
}
template
void f(T t)
{
here:
g(t);
goto here;
}
void
www.eeworm.com/read/233448/4674891
c label2.c
// { dg-do assemble }
// GROUPS passed labels
extern "C" void abort();
class X {
public:
X();
};
void foo ()
{
X: ::abort();
goto X;
}
www.eeworm.com/read/233448/4675013
c label1.c
// { dg-do assemble }
// GROUPS passed labels
// it should only give 1 error, about using an undefined label
int main(void) { goto dummy; }// { dg-error "" } .*
www.eeworm.com/read/233448/4675163
c label2.c
// { dg-do run }
// { dg-options "" }
// Origin: Mark Mitchell
template
int f ()
{
int i = 0;
int j = 0;
int k = 0;
l:
if (j)
return 0;
({
__lab