llvm-mirror/test/CFrontend/2005-04-09-ComplexOps.c

10 lines
253 B
C
Raw Normal View History

// RUN: %llvmgcc %s -S -o -
#include <math.h>
#define I 1.0iF
2005-04-10 03:07:25 +00:00
double __complex test(double X) { return ~-(X*I); }
2005-04-10 03:18:18 +00:00
_Bool EQ(double __complex A, double __complex B) { return A == B; }
_Bool NE(double __complex A, double __complex B) { return A != B; }