// RUN: %llvmgcc %s -o /dev/null -S
// Note:
//  We fail this on Sparc because the C library seems to be missing complex.h
//  and the corresponding C99 complex support.
//
//  We could modify the test to use only GCC extensions, but I don't know if
//  that would change the nature of the test.
//
// XFAIL: sparc

#include <complex.h>

int foo(complex float c) {
    return creal(c);
}

// RUN: %llvmgcc %s -o /dev/null -S
// Note:
//  We fail this on Sparc because the C library seems to be missing complex.h
//  and the corresponding C99 complex support.
//
//  We could modify the test to use only GCC extensions, but I don't know if
//  that would change the nature of the test.
//
// XFAIL: sparc

#ifdef __CYGWIN__
  #include <mingw/complex.h>
#else
  #include <complex.h>
#endif

int foo(complex float c) {
    return creal(c);
}

Make this testcase compatible with CYGWIN.
Make this testcase compatible with CYGWIN.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44353 91177308-0d34-0410-b5e6-96231b3b80d8
