Initial commit from sysy-main
This commit is contained in:
14
test/24_test_cp_cf.sy
Normal file
14
test/24_test_cp_cf.sy
Normal file
@@ -0,0 +1,14 @@
|
||||
//test file for constant propogation (cp) and constant folding (cf)
|
||||
int main(){
|
||||
|
||||
int b = 5;
|
||||
int c = 4 * b;
|
||||
int d, g;
|
||||
|
||||
if(c > 8){
|
||||
d = b + c;
|
||||
}
|
||||
g = c * d;
|
||||
|
||||
return g;
|
||||
}
|
||||
Reference in New Issue
Block a user