// RUN: %target-swift-frontend -enable-experimental-feature RawLayout -parse -verify %s @_rawLayout(size: 4, alignment: 4) struct Lock: ~Copyable {} @_rawLayout(like: Int) struct Lock2: ~Copyable {} @_rawLayout(like: Optional) struct Lock3: ~Copyable {} @_rawLayout(like: T) struct MyUnmanaged: ~Copyable {} @_rawLayout(likeArrayOf: T, count: 8) struct SmallVectorBuf: ~Copyable {} @_rawLayout // expected-error{{expected '('}} struct NoLayoutSpecified: ~Copyable {} @_rawLayout() // expected-error{{expected 'size', 'like', or 'likeArrayOf' argument to @_rawLayout attribute}} struct NoParamsSpecified: ~Copyable {} @_rawLayout(size: 4) // expected-error{{expected alignment argument after size argument in @_rawLayout attribute}} struct SizeWithoutAlignment: ~Copyable {} @_rawLayout(likeArrayOf: Optional) // expected-error{{expected count argument after likeArrayOf argument in @_rawLayout attribute}} struct ArrayWithoutSize: ~Copyable {}