Files
clang-p2996/lldb/test/API/lang/c/complex_int/main.c
Raphael Isemann 3e66bd291f [lldb][NFC] Add test for C99 and GCC complex types
LLDB has a lot of code for supporting complex types but we don't have a single
test for it. This adds some basic tests and documents the found bugs.
2020-06-19 16:22:16 +02:00

13 lines
378 B
C

#include <complex.h>
int main() {
int complex complex_int = -1 + -2 * I;
long complex complex_long = -1 + -2 * I;
long long complex complex_long_long = -1 + -2 * I;
unsigned complex complex_unsigned = 1 + 2 * I;
unsigned long complex complex_unsigned_long = 1 + 2 * I;
unsigned long long complex complex_unsigned_long_long = 1 + 2 * I;
return 0; // break here
}