1// RUN: not %clang_cc1 -emit-llvm -o %S/doesnotexist/somename %s 2> %t
2// RUN: FileCheck -check-prefix=OUTPUTFAIL -input-file=%t %s
3
4// OUTPUTFAIL: Error opening output file '{{.*}}doesnotexist{{.*}}'
5