clang/test/Modules/explicit-build-diags.cpp
raw| 1 | // RUN: rm -rf %t && mkdir %t |
| 2 | // RUN: %clang_cc1 -fmodules -x c++ %S/Inputs/explicit-build-diags/module.modulemap -fmodule-name=a -emit-module -o %t/a.pcm |
| 3 | // RUN: %clang_cc1 -fmodules -Wdeprecated-declarations -fdiagnostics-show-note-include-stack -serialize-diagnostic-file %t/tu.dia \ |
| 4 | // RUN: -I %S/Inputs/explicit-build-diags -fmodule-file=%t/a.pcm -fsyntax-only %s |
| 5 | |
| 6 | #include "a.h" |
| 7 | |
| 8 | void foo() { a(); } |