[clang] 23f256f - [clang] Fix typo in test from a723310b4
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 10 11:16:54 PDT 2021
Author: Nico Weber
Date: 2021-09-10T14:16:45-04:00
New Revision: 23f256f2b19843fa08f83dce43bab362e8ce2235
URL: https://github.com/llvm/llvm-project/commit/23f256f2b19843fa08f83dce43bab362e8ce2235
DIFF: https://github.com/llvm/llvm-project/commit/23f256f2b19843fa08f83dce43bab362e8ce2235.diff
LOG: [clang] Fix typo in test from a723310b4
We want the driver-level flag here, else the test passes for the wrong reasons.
See comments on 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 774874d80d82..dad40eaeddaf 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 -triple x86_64-unknown-unknown-gnu -fsyntax-only -nostdinc -nostdinc++ %s 2>&1 | FileCheck /dev/null --implicit-check-not=-Wunused-command-line-argument
+// RUN: not %clangxx --target=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