]> granicus.if.org Git - clang/commitdiff
Expand mingw-long-double.c to test for long double alignment.
authorYaron Keren <yaron.keren@gmail.com>
Fri, 21 Aug 2015 08:26:31 +0000 (08:26 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Fri, 21 Aug 2015 08:26:31 +0000 (08:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245679 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/mingw-long-double.c [moved from test/CodeGen/mingw-long-double-size.c with 70% similarity]

similarity index 70%
rename from test/CodeGen/mingw-long-double-size.c
rename to test/CodeGen/mingw-long-double.c
index dd1ffcb5ed8def634f1e9d33263794acecf4c8b9..a29662c8e7db1fba66405c50e742560169f753a4 100644 (file)
@@ -1,6 +1,12 @@
 // REQUIRES: x86-registered-target
 // RUN: %clang_cc1 -triple i686-pc-windows-gnu -S %s  -o - | FileCheck %s -check-prefix=CHECK_I686
-// CHECK_I686: lda,12
+// CHECK_I686: _lda,12
+// CHECK_I686: _lds,16
 // RUN: %clang_cc1 -triple x86_64-pc-windows-gnu -S %s  -o - | FileCheck %s -check-prefix=CHECK_X86_64
 // CHECK_X86_64: lda,16
+// CHECK_X86_64: lds,32
 long double lda;
+struct {
+  char c;
+  long double ldb;
+} lds;