array_of_struct.sol 311 B

123456789101112131415161718
  1. // RUN: --target solana --emit llvm-ir
  2. // READ: c.ll
  3. contract c {
  4. struct S {
  5. int8[2] f1;
  6. bool f2;
  7. Q[3] f3;
  8. }
  9. struct Q {
  10. bool[2] f1;
  11. uint64[4] f2;
  12. }
  13. // BEGIN-CHECK: @"c::c::function::foo__c.S"(ptr %14, ptr %0)
  14. function foo(S s) public pure {
  15. }
  16. }