r298006 - Add a small test for __STRUCT_PARM_ALIGN__ for ppc64 darwin.

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 16 15:31:07 PDT 2017


Author: echristo
Date: Thu Mar 16 17:31:07 2017
New Revision: 298006

URL: http://llvm.org/viewvc/llvm-project?rev=298006&view=rev
Log:
Add a small test for __STRUCT_PARM_ALIGN__ for ppc64 darwin.

Modified:
    cfe/trunk/test/Preprocessor/init.c

Modified: cfe/trunk/test/Preprocessor/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/init.c?rev=298006&r1=298005&r2=298006&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/init.c (original)
+++ cfe/trunk/test/Preprocessor/init.c Thu Mar 16 17:31:07 2017
@@ -6922,7 +6922,10 @@
 // PPC-DARWIN:#define __WINT_WIDTH__ 32
 // PPC-DARWIN:#define __powerpc__ 1
 // PPC-DARWIN:#define __ppc__ 1
-//
+
+// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc64-apple-darwin8 < /dev/null | FileCheck -match-full-lines -check-prefix PPC64-DARWIN %s
+// PPC64-DARWIN:#define __STRUCT_PARM_ALIGN__ 16
+
 // RUN: %clang_cc1 -x cl -E -dM -ffreestanding -triple=amdgcn < /dev/null | FileCheck -match-full-lines -check-prefix AMDGCN --check-prefix AMDGPU %s
 // RUN: %clang_cc1 -x cl -E -dM -ffreestanding -triple=r600 -target-cpu caicos < /dev/null | FileCheck -match-full-lines --check-prefix AMDGPU %s
 //




More information about the cfe-commits mailing list