24 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -std=c++26 -fmodules-cache-path=%t -I %S/Inputs/PR137102 -emit-llvm-only %s3// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -std=c++26 -fmodules-cache-path=%t -I %S/Inputs/PR137102 -emit-llvm-only %s -triple i686-windows4 5#include "type_aware_destroying_new_delete.h"6 7 8static void call_in_module_function(void) {9 in_module_tests();10}11 12void out_of_module_tests() {13 A* a = new A;14 delete a;15 B *b = new B;16 delete b;17 C *c = new C;18 delete c;19 D *d = new D;20 delete d;21 E *e = new E;22 delete e;23}24