[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Frontend / mips-long-double.c
blob09de38c6b7072292e93ce4aba2900218aeaec453
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
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