diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-07-17 16:13:25 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-21 12:21:30 -0700 |
| commit | d851b24180fdf2b622b06e9a35e315541fb10aa1 (patch) | |
| tree | 3502677e69ee19a43104e8b5008e968bd0365a24 /test/behavior/align.zig | |
| parent | 76e7959a90ae025a1934a4ad1c689663f523a4bc (diff) | |
| download | zig-d851b24180fdf2b622b06e9a35e315541fb10aa1.tar.gz zig-d851b24180fdf2b622b06e9a35e315541fb10aa1.zip | |
Sema: validate function pointer alignment
Diffstat (limited to 'test/behavior/align.zig')
| -rw-r--r-- | test/behavior/align.zig | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/align.zig b/test/behavior/align.zig index b0df7c6523..ad9a6d9616 100644 --- a/test/behavior/align.zig +++ b/test/behavior/align.zig @@ -299,7 +299,6 @@ test "implicitly decreasing fn alignment" { try testImplicitlyDecreaseFnAlign(alignedBig, 5678); } -// TODO make it a compile error to put align on the fn proto instead of on the ptr fn testImplicitlyDecreaseFnAlign(ptr: *align(1) const fn () i32, answer: i32) !void { try expect(ptr() == answer); } |
