Add PR check to suggest alternatives to using undef (#118506)
[llvm-project.git] / clang / test / Modules / module-transtive-instantiation.cpp
blobb44f0bbfdf399c4552c2d3349be49f0cced13fcf
1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: %clang_cc1 -std=c++20 %S/Inputs/module-transtive-instantiation/Templ.cppm -emit-module-interface -o %t/Templ.pcm
4 // RUN: %clang_cc1 -std=c++20 %S/Inputs/module-transtive-instantiation/bar.cppm -emit-module-interface -fprebuilt-module-path=%t -o %t/bar.pcm
5 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %s -fsyntax-only -verify
6 // expected-no-diagnostics
8 import bar;
9 int foo() {
10 return bar<int>();