blob: 63bb251c3f05d13b561dac932f2ff648e51e02d6 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc %s -o /dev/null -S
2// Note:
3// We fail this on Sparc because the C library seems to be missing complex.h
4// and the corresponding C99 complex support.
5//
6// We could modify the test to use only GCC extensions, but I don't know if
7// that would change the nature of the test.
8//
9// XFAIL: sparc
10
11#include <complex.h>
12
13int foo(complex float c) {
14 return creal(c);
15}