test: new codegen tests, rename hello.
This commit is contained in:
parent
53e934c2ab
commit
40f74341f3
8 changed files with 65 additions and 0 deletions
11
src/test/codegen/small-dense-int-switch.cc
Normal file
11
src/test/codegen/small-dense-int-switch.cc
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
extern "C"
|
||||
size_t test(size_t x, size_t y) {
|
||||
switch (x) {
|
||||
case 1: return y;
|
||||
case 2: return y*2;
|
||||
case 4: return y*3;
|
||||
default: return 11;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue