1  /* Tests for CTF complex base types.
       2  
       3     CTF does not have representation for complex integer types.
       4     
       5     This testcase has a mix of C constructs containing COMPLEX_TYPE.  */
       6  
       7  /* { dg-do compile )  */
       8  /* { dg-options "-O0 -gctf -dA" } */
       9  /* { dg-require-effective-target libc_has_complex_functions } */
      10  
      11  /* { dg-final { scan-assembler-times "ascii \"complex double.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      12  /* { dg-final { scan-assembler-times "ascii \"complex long double.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      13  /* { dg-final { scan-assembler-times "ascii \"complex float.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      14  
      15  #include <complex.h>
      16  
      17  double complex z1 = -1;
      18  
      19  const long double complex z2 = -1;
      20  
      21  float complex z4 = 1;