Skip to content

Commit 24315f4

Browse files
committed
[clang] Test managarm preprocessor defines
1 parent c085b33 commit 24315f4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

clang/test/Preprocessor/init.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,6 +1622,11 @@
16221622
// RUN: %clang_cc1 -x c -std=c99 -E -dM -ffreestanding -triple=amd64-unknown-openbsd < /dev/null | FileCheck -match-full-lines -check-prefix OPENBSD-STDC-N %s
16231623
// OPENBSD-STDC-N-NOT:#define __STDC_NO_THREADS__ 1
16241624
//
1625+
// RUN: %clang_cc1 -triple=aarch64-unknown-managarm-mlibc -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix MANAGARM %s
1626+
// RUN: %clang_cc1 -triple=riscv64-unknown-managarm-mlibc -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix MANAGARM %s
1627+
// RUN: %clang_cc1 -triple=x86_64-unknown-managarm-mlibc -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix MANAGARM %s
1628+
// MANAGARM: #define __managarm__ 1
1629+
//
16251630
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=xcore-none-none < /dev/null | FileCheck -match-full-lines -check-prefix XCORE %s
16261631
// XCORE:#define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
16271632
// XCORE:#define __LITTLE_ENDIAN__ 1

clang/test/Preprocessor/predefined-macros-no-warnings.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-fuchsia
1515
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-linux
1616
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-linux-openhos
17+
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-managarm
1718
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-netbsd
1819
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-openbsd
1920
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple aarch64-win32-gnu
@@ -108,6 +109,7 @@
108109
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-fuchsia
109110
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-linux
110111
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-linux-openhos
112+
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple riscv64-managarm
111113
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple sparc
112114
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple sparc-linux
113115
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple sparc-solaris
@@ -167,6 +169,7 @@
167169
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple x86_64-nacl
168170
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple x86_64-ps4
169171
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple x86_64-ps5
172+
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple x86_64-managarm
170173
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple spir
171174
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple spir64
172175
// RUN: %clang_cc1 %s -Eonly -Wsystem-headers -Werror -triple spirv32

0 commit comments

Comments
 (0)