From 1e6fedbb83585d6ed41c46d84b2727665d85f911 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 25 Mar 2017 19:26:04 +0000 Subject: _CALL_LINUX is only defined on 64-bit ppc linux platforms, not 32-bit. Adjust and add a test for the 32-bit side. llvm-svn: 298778 --- clang/test/Preprocessor/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test/Preprocessor') diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c index 2de3230a6b6..d48d476d700 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/test/Preprocessor/init.c @@ -6747,6 +6747,10 @@ // PPC-LINUX:#define __powerpc__ 1 // PPC-LINUX:#define __ppc__ 1 // +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-unknown-linux-gnu -fno-signed-char < /dev/null | FileCheck -match-full-lines -check-prefix PPC32-LINUX %s +// +// PPC32-LINUX-NOT: _CALL_LINUX +// // RUN: %clang_cc1 -E -dM -ffreestanding -triple=powerpc-apple-darwin8 < /dev/null | FileCheck -match-full-lines -check-prefix PPC-DARWIN %s // // PPC-DARWIN:#define _ARCH_PPC 1 -- cgit v1.2.3