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
16 lines
480 B
C++
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;
|
|
|