brintos

brintos / llvm-project-archived public Read only

0
0
Text · 673 B · 65601c1 Raw
22 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir -p %t3// RUN: split-file %s %t4//5// RUN: %clang_cc1 -std=c++20 %t/mod.templates.cppm -emit-module-interface -o %t/mod.templates.pcm6// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify7 8// RUN: %clang_cc1 -std=c++20 %t/mod.templates.cppm -emit-reduced-module-interface -o %t/mod.templates.pcm9// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify10//11//--- mod.templates.cppm12export module mod.templates;13template <class> struct t {};14export template <class T> using u = t<T>;15 16//--- Use.cpp17// expected-no-diagnostics18import mod.templates;19void foo() {20  u<int> v{};21}22