[PATCH] D107684: [NFC][AVR][clang] Add test for D107672

Matt Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 7 02:32:57 PDT 2021


mhjacobson updated this revision to Diff 364942.
mhjacobson added a comment.

Simplify.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107684/new/

https://reviews.llvm.org/D107684

Files:
  clang/test/Driver/avr-toolchain.c


Index: clang/test/Driver/avr-toolchain.c
===================================================================
--- clang/test/Driver/avr-toolchain.c
+++ clang/test/Driver/avr-toolchain.c
@@ -11,3 +11,7 @@
 
 // RUN: %clang %s -### -target avr --sysroot %S/Inputs/basic_avr_tree 2>&1 -nostdlibinc | FileCheck -check-prefix CC1C %s
 // CC1C-NOT: "-internal-isystem" {{".*avr/include"}}
+
+// Test that the driver finds an avr-libc installation at `$SYSROOT/avr/`.
+// RUN: %clang %s -### -no-canonical-prefixes -target avr --sysroot %S/Inputs/basic_avr_tree/usr/lib 2>&1 | FileCheck -check-prefix CC1D %s
+// CC1D: clang{{.*}} "-cc1" "-triple" "avr" {{.*}} "-internal-isystem" {{".*avr/include"}}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107684.364942.patch
Type: text/x-patch
Size: 693 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210807/b9ca8c01/attachment-0001.bin>


More information about the cfe-commits mailing list