llvm-project/llvm/test/FrontendC/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 11:07:25 +08:00
double __complex test(double X) { return ~-(X*I); }
2005-04-10 11:18:18 +08:00
_Bool EQ(double __complex A, double __complex B) { return A == B; }
_Bool NE(double __complex A, double __complex B) { return A != B; }