1  /* { dg-do compile } */
       2  /* { dg-options "-gdwarf-3 -dA" } */
       3  
       4  #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
       5  #define REVERSE_SSO __attribute__((scalar_storage_order("big-endian")));
       6  #else
       7  #define REVERSE_SSO __attribute__((scalar_storage_order("little-endian")));
       8  #endif
       9  
      10  struct S0 { int i; };
      11  
      12  struct S1 { int i; struct S0 s; } REVERSE_SSO;
      13  
      14  struct S2 { int a[4]; struct S0 s; } REVERSE_SSO;
      15  
      16  struct S0 s0;
      17  struct S1 s1;
      18  struct S2 s2;
      19  
      20  /* Verify that we have endianity on the common base type of 'i' in S1 and of
      21     the element of 'a' in S2.  */
      22  /* { dg-final { scan-assembler-times " DW_AT_endianity" 1 } } */