mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
update test case for new std.builtin.OptimizeMode API
This commit is contained in:
parent
9a29f4e038
commit
34b3145099
@ -1,6 +1,6 @@
|
|||||||
const builtin = @import("std").builtin;
|
const builtin = @import("std").builtin;
|
||||||
export fn entry() void {
|
export fn entry() void {
|
||||||
const foo = builtin.Mode.x86;
|
const foo = builtin.OptimizeMode.x86;
|
||||||
_ = foo;
|
_ = foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -8,5 +8,5 @@ export fn entry() void {
|
|||||||
// backend=stage2
|
// backend=stage2
|
||||||
// target=native
|
// target=native
|
||||||
//
|
//
|
||||||
// :3:30: error: enum 'builtin.Mode' has no member named 'x86'
|
// :3:38: error: enum 'builtin.OptimizeMode' has no member named 'x86'
|
||||||
// :?:18: note: enum declared here
|
// :?:18: note: enum declared here
|
||||||
|
Loading…
Reference in New Issue
Block a user