xref: /llvm-project/clang/test/CodeGenCXX/microsoft-abi-emit-dependent.cpp (revision 32b615c2a1c311967f97ad65b7d0153fac719d36)
1 // RUN: %clang_cc1 -emit-llvm-only -fmodules -triple x86_64-windows %s
2 // PR36181
3 #pragma clang module build foo
4 module foo {}
5 #pragma clang module contents
6 template <typename T> struct A {
7   friend void f(A<T>) {}
8 };
9 #pragma clang module endbuild
10 #pragma clang module import foo
g()11 void g() { f(A<int>()); }
12