1// RUN: rm -rf %t 2// RUN: mkdir %t 3// RUN: split-file %s %t 4// 5// RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-module-interface -o %t/Templ.pcm 6// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only 7 8//--- Templ.cppm 9export module Templ; 10export template <typename T> 11class Templ { 12public: 13 Templ(T a) {} 14}; 15 16template<typename T> 17Templ(T t) -> Templ<T>; 18 19//--- Use.cpp 20// expected-no-diagnostics 21import Templ; 22void func() { 23 Templ t(5); 24} 25 26