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

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 5 23:01:04 PDT 2021


MaskRay 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
----------------
`error: unknown target triple 'unknown-unknown-hurd-gnu', please use -triple or -arch`

Perhaps this should UNSUPPORTED aix if aix does not support -nostdinc++.


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