[PATCH] D99901: [Driver][test] Test intended target only

Jinsong Ji via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 6 06:39:42 PDT 2021


jsji added inline comments.


================
Comment at: clang/test/Driver/nostdincxx.cpp:4
 // 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 -target unknown-unknown-gnu -fsyntax-only -nostdinc -nostdinc++ %s 2>&1 | FileCheck /dev/null --implicit-check-not=-Wunused-command-line-argument
 // CHECK: file not found
----------------
MaskRay wrote:
> `error: unknown target triple 'unknown-unknown-hurd-gnu', please use -triple or -arch`
> 
> Perhaps this should UNSUPPORTED aix if aix does not support -nostdinc++.
No, AIX does support `-nostdinc++`, we don't want to unsupport this whole test


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99901



More information about the cfe-commits mailing list