summaryrefslogtreecommitdiff
path: root/tools/odinfmt/tests/attributes.odin
blob: 9911d3037be6bdc5bc4e5167374c52aec1ed8feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package odinfmt_test

main :: proc() {
	#no_bounds_check for i := 0; i < 100; i += 1 {
	}

	#no_bounds_check buf = buf[8:]
}

procedure_no_bounds_check :: proc() where 1 == 1 #no_bounds_check {}

// odinfmt: disable
@(require_results)
foo :: proc() -> int {
    return 0
}
// odinfmt: enable