Skip to content

Commit 370366f

Browse files
[clang] add __uefi__ test for aarch64 & x86_64
1 parent 71eb5ea commit 370366f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/test/Preprocessor/init.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,3 +2742,10 @@
27422742
// RISCV64-LINUX: #define __unix__ 1
27432743
// RISCV64-LINUX: #define linux 1
27442744
// RISCV64-LINUX: #define unix 1
2745+
//
2746+
// RUN: %clang_cc1 -dM -triple=aarch64-unknown-uefi -E < /dev/null | FileCheck -match-full-lines -check-prefix UEFI %s
2747+
// RUN: %clang_cc1 -dM -triple=x86_64-unknown-uefi -E /dev/null | FileCheck -match-full-lines -check-prefix UEFI %s
2748+
//
2749+
// UEFI: #define __uefi 1
2750+
// UEFI: #define __uefi__ 1
2751+
// UEFI: #define uefi 1

0 commit comments

Comments
 (0)