blob: a555bfd6c9d377ad4d811fb50e4de863fba5836b [file] [log] [blame]
Chris Lattnerc19ff5c2005-02-20 23:29:23 +00001// RUN: %llvmgcc %s -o /dev/null -S
John Criswelld60c0ef2005-04-01 23:16:23 +00002// Note:
3// We fail this on SparcV9 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: sparcv9
Chris Lattnerc19ff5c2005-02-20 23:29:23 +000010
11#include <complex.h>
12
13int foo(complex float c) {
14 return creal(c);
15}