clang/test/Modules/pr61065-2.cppm
raw| 1 | // RUN: rm -rf %t |
| 2 | // RUN: mkdir %t |
| 3 | // RUN: split-file %s %t |
| 4 | // |
| 5 | // RUN: %clang_cc1 -fallow-pcm-with-compiler-errors -fmodule-name=c -xc++ -emit-module -fmodules -std=gnu++20 %t/a.cppmap -o %t/c.pcm |
| 6 | //--- a.cppmap |
| 7 | module "c" { |
| 8 | header "a.h" |
| 9 | } |
| 10 | |
| 11 | //--- a.h |
| 12 | template <class> |
| 13 | class C {}; |
| 14 | template <class T> |
| 15 | C<T>::operator C() {} |