mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
14 lines
164 B
Swift
14 lines
164 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;
|
|
v = +x;
|
|
}
|