Files
llvm-project/clang/test/Modules/pr151277.cpp
Matt 2e404d1f80 clang: Make the type_info builtin declaration a singleton (#151277)
This fixes an ambiguous type type_info when you try and reference the
`type_info` type while using clang modulemaps with `-fms-compatibility`
enabled

Fixes #38400
2025-08-04 06:44:10 -07:00

16 lines
480 B
C++

// RUN: split-file %s %t
// RUN: %clang_cc1 -I%t -emit-module -o %t/a.pcm -fmodules %t/module.modulemap -fno-implicit-modules -fmodule-name=a -x c++-header -fms-compatibility
// RUN: %clang_cc1 -I%t -emit-module -o %t/b.pcm -fmodules %t/module.modulemap -fno-implicit-modules -fmodule-name=b -x c++-header -fms-compatibility -fmodule-file=%t/a.pcm
//--- module.modulemap
module a { header "a.h" }
module b { header "b.h" }
//--- a.h
type_info* foo;
//--- b.h
type_info* bar;