
This relands the patch
67b298f6d8
,
with some more testcases.
The `undefined symbol` error mentioned in
https://github.com/llvm/llvm-project/issues/61065#issuecomment-1517725811
doesn't exist anymore from our internal tests.
Fixes #61065, #134739
---------
Co-authored-by: Viktoriia Bakalova <bakalova@google.com>
16 lines
323 B
C++
16 lines
323 B
C++
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: split-file %s %t
|
|
//
|
|
// 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
|
|
//--- a.cppmap
|
|
module "c" {
|
|
header "a.h"
|
|
}
|
|
|
|
//--- a.h
|
|
template <class>
|
|
class C {};
|
|
template <class T>
|
|
C<T>::operator C() {}
|