| 1 | const Foo = enum { A, B, C }; |
| 2 | export fn entry(foo: Foo) void { |
| 3 | _ = foo; |
| 4 | } |
| 5 | |
| 6 | // error |
| 7 | // target=x86_64-linux |
| 8 | // |
| 9 | // :2:17: error: parameter of type 'tmp.Foo' not allowed in function with calling convention 'x86_64_sysv' |
| 10 | // :1:13: note: integer tag type of enum is inferred |
| 11 | // :1:13: note: consider explicitly specifying the integer tag type |
| 12 | // :1:13: note: enum declared here |