mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
13 lines
155 B
Swift
13 lines
155 B
Swift
|
|
func test(c: Bool, x: Int, y: Int, z: Int) {
|
|
var v = 0
|
|
|
|
// arithmetic operations
|
|
v = x + y;
|
|
v = x - 1;
|
|
v = 2 * y;
|
|
v = 3 / 4;
|
|
v = x % y;
|
|
v = -x;
|
|
}
|