Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git] / test / FrontendC / 2004-06-17-UnorderedCompares.c
blobf91ed6687ce485936c632ddb074a90deb6bd2e8a
1 // RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
3 #include <math.h>
5 _Bool A, B, C, D, E, F;
6 void TestF(float X, float Y) {
7 A = __builtin_isgreater(X, Y);
8 B = __builtin_isgreaterequal(X, Y);
9 C = __builtin_isless(X, Y);
10 D = __builtin_islessequal(X, Y);
11 E = __builtin_islessgreater(X, Y);
12 F = __builtin_isunordered(X, Y);
14 void TestD(double X, double Y) {
15 A = __builtin_isgreater(X, Y);
16 B = __builtin_isgreaterequal(X, Y);
17 C = __builtin_isless(X, Y);
18 D = __builtin_islessequal(X, Y);
19 E = __builtin_islessgreater(X, Y);
20 F = __builtin_isunordered(X, Y);