| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x c++ -std=c++26 -fmodules-cache-path=%t -I %S/Inputs/PR137102 -emit-llvm-only %s |
| 3 |
// 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-windows |
| 4 |
|
| 5 |
#include "type_aware_destroying_new_delete.h" |
| 6 |
|
| 7 |
|
| 8 |
static void call_in_module_function(void) { |
| 9 |
in_module_tests(); |
| 10 |
} |
| 11 |
|
| 12 |
void 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 |
} |