llvm-project/clang/test/Sema/i386-linux-android.c
Tamas Berghammer 6373cee3b6 Create android x86_32 and x86_64 target info
On android x86_32 the long double is only 64 bits (compared to 80 bits
on linux x86_32) and on android x86_64 the long double is IEEEquad
(compared to x87DoubleExtended on linux x86_64). This CL creates new
TargetInfo classes for this targets to represent these differences.

Differential revision: http://reviews.llvm.org/D8357

llvm-svn: 233177
2015-03-25 10:38:50 +00:00

7 lines
207 B
C

// RUN: %clang_cc1 -triple i386-linux-android -fsyntax-only -verify %s
// expected-no-diagnostics
extern int a1_0[sizeof(long double) == 8 ? 1 : -1];
extern int a1_i[__alignof(long double) == 4 ? 1 : -1];