[WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349
[llvm-project.git] / flang / test / Driver / output-paths.f90
blob394425fb4310af59dcced8eda8b9f588e419fea6
1 ! Test the diagnostic for cases when the output file cannot be generated
3 !--------------------------
4 ! RUN lines
5 !--------------------------
6 ! RUN: not %flang_fc1 -E -o %t.doesnotexist/somename %s 2> %t
7 ! RUN: FileCheck -check-prefix=OUTPUTFAIL -DMSG=%errc_ENOENT -input-file=%t %s
9 !-----------------------
10 ! EXPECTED OUTPUT
11 !-----------------------
12 ! OUTPUTFAIL: error: unable to open output file '{{.*}}doesnotexist{{.}}somename': '[[MSG]]'