2019-02-03 23:49:11 +08:00
|
|
|
// RUN: not %clang_cc1 -emit-llvm -o %t.doesnotexist/somename %s 2> %t
|
2021-01-29 20:15:50 +08:00
|
|
|
// RUN: FileCheck -check-prefix=OUTPUTFAIL -DMSG=%errc_ENOENT -input-file=%t %s
|
2009-11-21 06:32:38 +08:00
|
|
|
|
2021-01-29 20:15:50 +08:00
|
|
|
// OUTPUTFAIL: error: unable to open output file '{{.*}}doesnotexist{{.}}somename': '[[MSG]]'
|
2022-09-09 23:56:53 +08:00
|
|
|
|
|
|
|
// Check that -working-directory is respected when diagnosing output failures.
|
|
|
|
//
|
|
|
|
// RUN: rm -rf %t.d && mkdir -p %t.d/%basename_t-inner.d
|
|
|
|
// RUN: %clang_cc1 -emit-llvm -working-directory %t.d -E -o %basename_t-inner.d/somename %s -verify
|
|
|
|
// expected-no-diagnostics
|
|
|
|
|
|
|
|
// RUN: %clang_cc1 -working-directory %t.d -E %s -o - | FileCheck %s
|
|
|
|
// CHECK: # 1
|