]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Frontend/mips-long-double.c
Vendor import of clang tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / test / Frontend / mips-long-double.c
1 // RUN: %clang_cc1 -triple mips64-unknown-freebsd -std=c11 -verify %s
2 // RUN: %clang_cc1 -triple mips-unknown-freebsd -std=c11 -verify %s
3 // RUN: %clang_cc1 -triple mips-unknown-linux -std=c11 -verify %s
4 // RUN: %clang_cc1 -triple mips64-unknown-linux -std=c11 -verify %s
5 // expected-no-diagnostics
6
7 #ifdef _ABI64
8 #  ifdef __FreeBSD__
9 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
10 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
11 #  else
12 _Static_assert(sizeof(long double) == 16, "sizeof long double is wrong");
13 _Static_assert(_Alignof(long double) == 16, "alignof long double is wrong");
14 #  endif
15 #else
16 _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
17 _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
18 #endif
19