mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Instantiate C++ templates at end of file. (#6084)
Mark C++ functions as used when overload resolution selects them, and trigger Clang's end-of-TU processing at the end of the Carbon compilation to perform instantiation and other pending cleanup steps.
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
|
||||
enum { a, b, c };
|
||||
|
||||
void F(decltype(a));
|
||||
void F(decltype(a)) {}
|
||||
|
||||
class C {
|
||||
public:
|
||||
enum { d, e, f };
|
||||
|
||||
void F(decltype(d));
|
||||
void F(decltype(d)) {}
|
||||
};
|
||||
|
||||
// --- copy_enum.carbon
|
||||
|
||||
Reference in New Issue
Block a user