Haojian Wu 1d0ee12e34
Reland "Reland [Modules] Remove unnecessary check when generating name lookup table in ASTWriter" (#139253)
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>
2025-05-13 07:46:43 +02:00

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() {}