Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Headers / crash-instantiated-in-scope-cxx-modules2.cpp
blob5b1a904e928a6821d17d3bb02d642e411832f59c
1 // RUN: rm -fR %t
2 // RUN: split-file %s %t
3 // RUN: cd %t
4 // RUN: %clang_cc1 -std=c++20 -emit-header-unit -xc++-user-header header.h
5 // RUN: %clang_cc1 -std=c++20 -fmodule-file=header.pcm main.cpp
7 //--- header.h
8 template <typename T>
9 void f(T) {}
11 class A {
12 virtual ~A();
15 inline A::~A() {
16 f([](){});
19 struct B {
20 void g() {
21 f([](){
22 [](){};
23 });
26 // expected-no-diagnostics
28 //--- main.cpp
29 import "header.h";
30 // expected-no-diagnostics