Skip to content

Commit a433cb7

Browse files
committed
Add lit tests in clang/test/Driver/baremetal.cpp
1 parent 97c87ce commit a433cb7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clang/test/Driver/baremetal.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,20 @@
143143
// RUN: | FileCheck %s --check-prefix=CHECK-RTLIB-GCC
144144
// CHECK-RTLIB-GCC: -lgcc
145145

146+
// RUN: %clang -### --target=arm-none-eabi -nolibc %s 2>&1 \
147+
// RUN: | FileCheck %s --check-prefix=CHECK-NOLIBC
148+
// CHECK-NOLIBC-NOT: "-lc"
149+
// CHECK-NOLIBC-NOT: "-lm"
150+
// CHECK-NOLIBC-NOT: "-lc++"
151+
// CHECK-NOLIBC: "{{[^"]*}}libclang_rt.builtins.a"
152+
153+
// RUN: %clang -### --target=arm-none-eabi -nostdlib %s 2>&1 \
154+
// RUN: | FileCheck %s --check-prefix=CHECK-NOSTDLIB
155+
// CHECK-NOSTDLIB-NOT: "-lc"
156+
// CHECK-NOSTDLIB-NOT: "-lm"
157+
// CHECK-NOSTDLIB-NOT: "-lc++"
158+
// CHECK-NOSTDLIB-NOT: "{{[^"]*}}libclang_rt.builtins.a"
159+
146160
// RUN: %clang -### --target=arm-none-eabi -v %s 2>&1 \
147161
// RUN: | FileCheck %s --check-prefix=CHECK-SYSROOT-INC
148162
// CHECK-SYSROOT-INC-NOT: "-internal-isystem" "include"

0 commit comments

Comments
 (0)