代码搜索结果
找到约 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-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 rs6000-*-linux* powerpc-*-linux*} } */
/* { dg-options "-fpic -O2" } */
void f (char *s)
{
for (;;)
{
int t = 6;
switch (t)
{
case 2:
*s = '2';
cas
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.java
package com.javapatterns.command.lightandfan;
public class Switch {
private Command UpCommand, DownCommand;
public Switch( Command Up, Command Down) {
UpCommand =
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
switch.2bk
tst/switch.c:55: warning: missing return value
tst/switch.c:73: warning: missing return value
tst/switch.c:97: warning: missing return value
tst/switch.c:112: warning: missing return value
tst/swi
switch.2bk
tst/switch.c:55: warning: missing return value
tst/switch.c:73: warning: missing return value
tst/switch.c:97: warning: missing return value
tst/switch.c:112: warning: missing return value
tst/swi