summaryrefslogtreecommitdiffstats
path: root/tests/front-end/link-time-struct-same-line.slang
blob: 790e1e16582c64db67b5c2c2e84931e9bdf01695 (plain)
1
2
3
4
5
6
7
8
9
// Check that we can correctly parse link-time struct definitions on the same line.
// There was a bug where the parser is expecting an identifier after `struct` definition,
// even if the struct is a link-time struct ending with a `;`.

//TEST:SIMPLE: -target slangvm

interface IFoo{}
struct FooImpl : IFoo{}
export struct Foo1 : IFoo = FooImpl; export struct Foo2 : IFoo = FooImpl;