From bd4614292b5f04e73c92b6786e6d9da14b1a3914 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 6 Sep 2013 14:53:07 +0000 Subject: [PATCH] Add a test for the KFreeBSD define (#define __FreeBSD_kernel__ 1). This was introduced in commit r190048 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190159 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Preprocessor/init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index ba74dde005..a48bf01b2e 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -2934,6 +2934,10 @@ // SPARC64-OBSD:#define __INTMAX_TYPE__ long long int // SPARC64-OBSD:#define __UINTMAX_TYPE__ long long unsigned int // +// RUN: %clang_cc1 -E -dM -ffreestanding -triple=x86_64-pc-kfreebsd-gnu < /dev/null | FileCheck -check-prefix KFREEBSD-DEFINE %s +// KFREEBSD-DEFINE:#define __FreeBSD_kernel__ 1 +// KFREEBSD-DEFINE:#define __GLIBC__ 1 +// // RUN: %clang_cc1 -x c++ -triple i686-pc-linux-gnu -fobjc-runtime=gcc -E -dM < /dev/null | FileCheck -check-prefix GNUSOURCE %s // GNUSOURCE:#define _GNU_SOURCE 1 // -- 2.40.0