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