[clang] a723310 - [Driver][test] Test intended target only
Jinsong Ji via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 7 13:08:45 PDT 2021
Author: Jinsong Ji
Date: 2021-04-07T20:08:26Z
New Revision: a723310b419be870acf72aafd3bfabacbaace642
URL: https://github.com/llvm/llvm-project/commit/a723310b419be870acf72aafd3bfabacbaace642
DIFF: https://github.com/llvm/llvm-project/commit/a723310b419be870acf72aafd3bfabacbaace642.diff
LOG: [Driver][test] Test intended target only
6fe7de90b9e4e466a5c2baadafd5f72d3203651d changed GNU toolchain,
and added new RUN line to test expected behavior.
The change is for GNU toolchain only, so this will fail other toolchain,
eg: AIX.
Update the test with `-target` to test GNU tool chain only.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D99901
Added:
Modified:
clang/test/Driver/nostdincxx.cpp
Removed:
################################################################################
diff --git a/clang/test/Driver/nostdincxx.cpp b/clang/test/Driver/nostdincxx.cpp
index c919c73fa126..774874d80d82 100644
--- a/clang/test/Driver/nostdincxx.cpp
+++ b/clang/test/Driver/nostdincxx.cpp
@@ -1,7 +1,7 @@
// RUN: not %clangxx -nostdinc %s 2>&1 | FileCheck %s
// RUN: not %clangxx -nostdinc++ %s 2>&1 | FileCheck %s
// RUN: not %clangxx -nostdlibinc %s 2>&1 | FileCheck %s
-// RUN: not %clangxx -fsyntax-only -nostdinc -nostdinc++ %s 2>&1 | FileCheck /dev/null --implicit-check-not=-Wunused-command-line-argument
+// RUN: not %clangxx -triple x86_64-unknown-unknown-gnu -fsyntax-only -nostdinc -nostdinc++ %s 2>&1 | FileCheck /dev/null --implicit-check-not=-Wunused-command-line-argument
// CHECK: file not found
#include <vector>
More information about the cfe-commits
mailing list