| 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 |
| 11 | void g() { f(A<int>()); } |
| 12 |