[PATCH] D122712: Make test case warning more specific for pattern match
Ranjeet Singh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 30 02:29:56 PDT 2022
rs created this revision.
rs added a reviewer: benshi001.
Herald added subscribers: Jim, dylanmckay.
Herald added a project: All.
rs requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
It's possible that other compilers based on llvm might produce other warnings. So I think it would be good if this warning was a bit more specific.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122712
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
@@ -39,7 +39,7 @@
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/basic_avr_tree -mmcu=atmega328 %s 2>&1 | FileCheck --check-prefix=NOWARN %s
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/basic_avr_tree -mmcu=atmega328 -S %s 2>&1 | FileCheck --check-prefix=NOWARN %s
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/ -mmcu=atmega328 -S %s 2>&1 | FileCheck --check-prefix=NOWARN %s
-// NOWARN-NOT: warning:
+// NOWARN-NOT: warning: no target microcontroller specified on command line, cannot link standard libraries
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/basic_avr_tree -S %s 2>&1 | FileCheck --check-prefixes=NOMCU,LINKA %s
// RUN: %clang -### --target=avr --sysroot=%S/Inputs/ -S %s 2>&1 | FileCheck --check-prefixes=NOMCU,LINKA %s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122712.419080.patch
Type: text/x-patch
Size: 955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220330/385cdcc9/attachment.bin>
More information about the cfe-commits
mailing list