(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
sso-5.c
       1  /* Test support of scalar_storage_order attribute */
       2  
       3  /* { dg-do compile } */
       4  
       5  struct S3
       6  {
       7    struct __attribute__((scalar_storage_order("big-endian"))) S1
       8    {
       9      int i;
      10    } s1;
      11  };
      12  
      13  struct S4
      14  {
      15    struct __attribute__((scalar_storage_order("little-endian"))) S2
      16    {
      17      int i;
      18    } s2;
      19  };
      20  
      21  void incompatible_assign (struct S3 *s3, struct S4 *s4)
      22  {
      23    s3->s1 = s4->s2; /* { dg-error "(incompatible types|no match)" } */
      24  }