(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
sso/
q13.c
       1  /* { dg-do run } */
       2  
       3  #include <stdio.h>
       4  
       5  #include "init13.h"
       6  #include "dump.h"
       7  
       8  #ifdef __cplusplus
       9  extern "C"
      10  #endif
      11  void abort (void);
      12  
      13  int main (void)
      14  {
      15    struct R1 A1 = My_R1;
      16    struct R1 B1 = My_R1;
      17  
      18    struct R2 A2 = My_R2;
      19    struct R2 B2 = My_R2;
      20  
      21    put ("A1 :");
      22    dump (&A1, sizeof (struct R1));
      23    new_line ();
      24    /* { dg-output "A1 : db 0f 49 40 db 0f 49 c0.*\n" } */
      25  
      26    put ("B1 :");
      27    dump (&B1, sizeof (struct R1));
      28    new_line ();
      29    /* { dg-output "B1 : db 0f 49 40 db 0f 49 c0.*\n" } */
      30  
      31    put ("A2 :");
      32    dump (&A2, sizeof (struct R2));
      33    new_line ();
      34    /* { dg-output "A2 : 40 49 0f db c0 49 0f db.*\n" } */
      35  
      36    put ("B2 :");
      37    dump (&B2, sizeof (struct R2));
      38    new_line ();
      39    /* { dg-output "B2 : 40 49 0f db c0 49 0f db.*\n" } */
      40  
      41    if (A1.F != B1.F) abort ();
      42  
      43    if (A1.F != Pi - Pi * I) abort ();
      44  
      45    if (A2.F != B2.F) abort ();
      46  
      47    if (A2.F != Pi - Pi * I) abort ();
      48  
      49    new_line ();
      50    return 0;
      51  }