代码搜索结果

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

switch-warn-3.c

/* { dg-do compile } */ /* { dg-options "-Wswitch-enum" } */ enum a { a0, a1, a2, a3 }; int error(enum a aa) { switch ( aa ) { case a0 ... a3: return 1; } return 0; }

switch-4.c

/* PR middle-end/17657 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ extern signed char foo(int); void bar (void) { signed char tmp = foo (0); int t1 = tmp; switch (t1) { case

switch-7.c

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

switch-1.c

/* { dg-do compile { target fpic } } */ /* { dg-options "-fpic -O2" } */ void f (char *s) { for (;;) { int t = 6; switch (t) { case 2: *s = '2'; case 6: case 4: case 3: case 1

switch-5.c

/* Test diagnostics for switch statements and labels therein. Test with no special options. */ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options "" } */

switch-3.c

/* PR c/9262 */ /* Originator: Rasmus Hahn */ /* { dg-do compile } */ int foo(int i) { switch (i) case 3: return 1; case 4: /* { dg-error "not within a swi

switch.pm

package Switch; use strict; use vars qw($VERSION); use Carp; $VERSION = '2.13'; # LOAD FILTERING MODULE... use Filter::Util::Call; sub __(); # CATCH ATTEMPTS TO CALL case OUTSIDE THE SCOPE OF AN

switch.pm

use CGI; $VERSION = '1.00'; 1; __END__ =head1 NAME CGI::Switch - Backward compatibility module for defunct CGI::Switch =head1 SYNOPSIS Do not use this module. It is deprecated. =head1 ABSTRAC

switch.c

#include void Switchdemo(void) { Byte outputstate; switch(outputstate) {case 1: P1_0=0; P1_1=0; P1_2=0; break; //跳出循环 case 2: P1_0=1; P1_1=0; P1_2=0; break;

switch.uv2

### uVision2 Project, (C) Keil Software ### Do not modify ! Target (Target 1), 0x0000 // Tools: 'MCS-51' Group (Source Group 1) File 1,1, Options 1,0,0 // Target