]> granicus.if.org Git - clang/commitdiff
Add a test for the KFreeBSD define (#define __FreeBSD_kernel__ 1). This was introduce...
authorSylvestre Ledru <sylvestre@debian.org>
Fri, 6 Sep 2013 14:53:07 +0000 (14:53 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 6 Sep 2013 14:53:07 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190159 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/init.c

index ba74dde0059f14c706d27b3d460ca104e9f0d4f4..a48bf01b2e725ea092e0b9906ea76bbd4fd89c78 100644 (file)
 // 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
 //