================
@@ -0,0 +1,27 @@
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: split-file %s %t
+// RUN: %clang -std=c++20 -x c++-module --precompile %t/mymodule.cppm -o 
%t/mymodule.pcm -I%t
+// RUN: %check_clang_tidy -std=c++20 %t/main.cpp 
performance-trivially-destructible %t/out \
+// RUN:     -- -- -I%t -fmodule-file=mymodule=%t/mymodule.pcm
+
+//--- header.h
+#pragma once
+
+struct A {
+    ~A() = default;
+};
+
+struct X {
+    A a;
+};
+
+//--- mymodule.cppm
+module;
+#include "header.h"
+export module mymodule;
+
+//--- main.cpp
+#include "header.h"
+import mymodule;
+int main() { X x; }
----------------
Ignition wrote:

Added positive test case

https://github.com/llvm/llvm-project/pull/178471
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to