代码搜索结果
找到约 21,386 项符合
Switch 的代码
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-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.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.c
/*
* spu_switch.c
*
* (C) Copyright IBM Corp. 2005
*
* Author: Mark Nutter
*
* Host-side part of SPU context switch sequence outlined in
* Synergistic Processor Element, B
switch.exp
set test switch-1
set prog_output "ans = 1"
do_test switch-1.m
set test switch-2
set prog_output "ans = 1"
do_test switch-2.m
set test switch-3
set prog_output "ans = 1"
do_test switch-3.m
set test
switch-4.m
switch endswitch
switch-6.m
switch 1 default 1; endswitch
switch-5.m
switch case endswitch