aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/x86_64-linux-android.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/x86_64-linux-android.c')
-rw-r--r--test/Sema/x86_64-linux-android.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Sema/x86_64-linux-android.c b/test/Sema/x86_64-linux-android.c
new file mode 100644
index 000000000000..e09d50ca079c
--- /dev/null
+++ b/test/Sema/x86_64-linux-android.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-linux-android -emit-pch -o %t %s
+// RUN: %clang_cc1 -x ast -ast-print %t | FileCheck %s
+
+extern int a1_0[sizeof(long double) == 16 ? 1 : -1];
+extern int a1_i[__alignof(long double) == 16 ? 1 : -1];
+
+// Verify that long double is 128 bit IEEEquad
+
+long double foo = 1.0E4000L;
+// CHECK: long double foo = 1.00000000000000000000000000000000004E+4000L;