brintos

brintos / llvm-project-archived public Read only

0
0
Text · 306 B · e74ebc8 Raw
12 lines · cpp
1// RUN: %clang_cc1 -emit-llvm-only -fmodules -triple x86_64-windows %s2// PR361813#pragma clang module build foo4module foo {}5#pragma clang module contents6template <typename T> struct A {7  friend void f(A<T>) {}8};9#pragma clang module endbuild10#pragma clang module import foo11void g() { f(A<int>()); }12