代码搜索结果

找到约 21,386 项符合 Switch 的代码

switch.h

/************************************************************************************ * arch/z80/src/z8/switch.h * arch/z80/src/chip/switch.h * * Copyright (C) 2008 Gregory Nutt. All rights rese

switch-1.c

/* Copyright (C) 2003 Free Software Foundation. Test that switch statements suitable using case bit tests are implemented correctly. Written by Roger Sayle, 01/25/2001. */ extern void ab

switch-1.c

/* PR middle-end/26557. */ const int struct_test[1] = {1}; void g(); void f() { switch(struct_test[0]) { case 1: g(); } }

wtr-switch-1.c

/* Test for -Wtraditional warnings on switch operands of type long. Note, gcc should omit these warnings in system header files. By Kaveh R. Ghazi 8/22/2000. */ /* { dg

switch-9.c

/* PR middle-end/18859 */ /* { dg-do compile } */ /* { dg-options "" } */ void foo(int a) { switch (a) { case 0 ... -1: /* { dg-warning "empty range" } */ a = a+2; break; ca

switch-6.c

/* Test diagnostics for switch statements and labels therein. Test for case ranges with -pedantic. */ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options

switch-a.c

/* { dg-do compile } */ void foo() { switch (,) { } /* { dg-error "expected expression before" } */ }

switch-2.c

/* PR c/9262 */ /* Originator: Rasmus Hahn */ /* { dg-do compile } */ int foo(int i) { switch (i) case 3: return 1, } /* { dg-error "parse error|syntax error|expec

switch-8.c

/* PR middle-end/18493 */ /* { dg-do link } */ int main() { goto bug; switch(0) { bug: return 0; } }