代码搜索结果

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

7c-01.c

/* { dg-do compile } */ #include vector float f(int i) { switch (i) { case 0: return (vector float)(((vector unsigned char){3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3})); } return ((vecto

nested-func-1.c

/* Test for proper errors for break and continue in nested functions. */ /* Origin: Joseph Myers */ /* { dg-do compile } */ /* { dg-options "" } */ void foo (int a) { switch

20030907-1.c

/* PR optimization/12198 This was a miscompilation of a switch expressions because the "Case Ranges" extension wasn't handled in tree-cfg.c. */ /* { dg-do compile } */ /* { dg-options "-O -fd

pr20017.c

/* PR rtl-optimization/20017 After CSE/GCSE folds a switch statement to an unconditional jump, cfg_cleanup did not remove a dead jump table, confusing the CFG layout code later on. */ /* {

c99-vla-jump-5.c

/* Test for labels and VM declarations: bug 12913. switch statements must not jump into the scope of VM declarations. c99-vla-jump-1.c tests with just that label and goto, VLAs. c99-vla-jump

20050105-1.c

/* PR rtl-optimization/18861 */ /* { dg-do compile } */ /* { dg-options "-O2 -floop-optimize2" } */ extern void abort (void); int foo (int code) { if (code >= 3) switch (code) { ca

wswitch-2.c

/* Further -Wswitch tests. */ /* { dg-do compile } */ /* { dg-options "-Wswitch" } */ enum e { e1 = 0, e2 = 1, e3 = 1, e4 = 2 }; int foo (enum e ei, int j) { switch (ei) { case e1: return

pr8955.java

public class pr8955 { static final int val = Integer.MIN_VALUE; void foo() { switch(1) { case val: break; case 1: break; } } }

pr25429.java

public class pr25429 { private static final int CONST = 0; class I { public void f () { switch(0) { case CONST: } } } public static void main(String[] args) { } }

pr310.java

public class PR310 { void m (long l) { switch (l) { } } }