xref: /minix3/external/bsd/llvm/dist/clang/test/Frontend/mips-long-double.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple mips64-unknown-freebsd -std=c11 -verify %s
2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple mips-unknown-freebsd -std=c11 -verify %s
3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple mips-unknown-linux -std=c11 -verify %s
4*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple mips64-unknown-linux -std=c11 -verify %s
5*f4a2713aSLionel Sambuc // expected-no-diagnostics
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc #ifdef _ABI64
8*f4a2713aSLionel Sambuc #  ifdef __FreeBSD__
9*f4a2713aSLionel Sambuc _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
10*f4a2713aSLionel Sambuc _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
11*f4a2713aSLionel Sambuc #  else
12*f4a2713aSLionel Sambuc _Static_assert(sizeof(long double) == 16, "sizeof long double is wrong");
13*f4a2713aSLionel Sambuc _Static_assert(_Alignof(long double) == 16, "alignof long double is wrong");
14*f4a2713aSLionel Sambuc #  endif
15*f4a2713aSLionel Sambuc #else
16*f4a2713aSLionel Sambuc _Static_assert(sizeof(long double) == 8, "sizeof long double is wrong");
17*f4a2713aSLionel Sambuc _Static_assert(_Alignof(long double) == 8, "alignof long double is wrong");
18*f4a2713aSLionel Sambuc #endif
19*f4a2713aSLionel Sambuc 
20