1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
4 // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%S/Inputs/merge-record-definition %s \
5 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -fmodule-name=RecordDef
6 // RUN: %clang_cc1 -emit-llvm -o %t/test.bc -F%S/Inputs/merge-record-definition %s -DMODULAR_BEFORE_TEXTUAL \
7 // RUN: -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/modules.cache -fmodule-name=RecordDef
9 // Test a case when a struct definition once is included from a textual header and once from a module.
11 #ifdef MODULAR_BEFORE_TEXTUAL
12 #import <RecordDefIncluder/RecordDefIncluder.h>
14 #import <RecordDef/RecordDef.h>
20 AnonymousStruct strct;
26 #ifdef MODULAR_BEFORE_TEXTUAL
27 #import <RecordDef/RecordDef.h>
29 #import <RecordDefIncluder/RecordDefIncluder.h>
35 AnonymousStruct strct;