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