Files
wit-bindgen/tests/codegen/keywords.wit
Alex Crichton a2935a4fa4 Update wit-bindgen for upcoming WIT changes (#580)
* Update Rust codegen for new WIT changes

* Update the markdown generation for new WIT

* more-rust

* Update the C generator for new WIT

* Get Rust guest tests compiling

* Get rust host tests working

* Get all C tests passing

* Turn off teavm-java and Go tests for now

* Fixup lockfile after rebase

* Bump crate versions

* Update dependency sources

* Update to wasmtime dep
2023-05-26 12:30:24 -05:00

48 lines
1.4 KiB
Plaintext

package foo:foo
interface keywords {
record for {
return: u32,
}
%type: func(%type: u32) -> (%type: u32, %flags: s32)
%variant: func(%enum: s32) -> ()
%interface: func(%interface: s32) -> ()
throw: func(throw: s32) -> ()
new: func(new: s32) -> ()
%package: func(%package: s32) -> ()
final: func(final: s32) -> ()
auto: func(auto: s32) -> ()
else: func(for: s32) -> ()
long: func(long: s32) -> ()
switch: func(switch: s32) -> ()
break: func(break: s32) -> ()
register: func(register: s32) -> ()
typedef: func(typedef: s32) -> ()
case: func(case: s32) -> ()
extern: func(extern: s32) -> ()
%union: func(%union: s32) -> ()
%char: func(%char: s32) -> ()
float: func(float: s32) -> ()
short: func(short: s32) -> ()
unsigned: func(unsigned: s32) -> ()
const: func(const: s32) -> ()
signed: func(signed: s32) -> ()
void: func(void: s32) -> ()
continue: func(continue: s32) -> ()
goto: func(goto: s32) -> ()
sizeof: func(sizeof: s32) -> ()
volatile: func(volatile: s32) -> ()
default: func(default: s32) -> ()
if: func(if: s32) -> ()
%static: func(%static: s32) -> ()
while: func(while: s32) -> ()
do: func(do: s32) -> ()
%int: func(%int: s32) -> ()
%struct: func(%struct: s32) -> ()
}
world the-world {
import keywords
export keywords
}