(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
debug/
dwarf2/
sso-3.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-gdwarf-3 -dA" } */
       3  
       4  typedef int   int_t;
       5  typedef short short_t;
       6  
       7  #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
       8  #define REVERSE_SSO __attribute__((scalar_storage_order("big-endian")));
       9  #else
      10  #define REVERSE_SSO __attribute__((scalar_storage_order("little-endian")));
      11  #endif
      12  
      13  struct reverse
      14  {
      15    int_t i;
      16    short_t a[4];
      17  } REVERSE_SSO;
      18  
      19  struct native
      20  {
      21    int_t i;
      22    short_t a[4];
      23  };
      24  
      25  struct reverse R;
      26  struct native  N;
      27  
      28  /* Verify that we have endianity on the common base type of 'i' and the
      29   *  element of 'a' in the first 2 structures.  */
      30  /* { dg-final { scan-assembler-times " DW_AT_endianity" 2 } } */
      31  /* { dg-final { scan-assembler-times "DIE \\(\[0-9a-z\]*\\) DW_TAG_base_type" 5 } } */