brintos

brintos / llvm-project-archived public Read only

0
0
Text · 667 B · b7560cf Raw
30 lines · plain
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2// RUN: rm -rf %t3// RUN: mkdir %t4// 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.cache6 7// Test a case when a struct definition is present in two different modules.8 9#import <RecordDef/RecordDef.h>10 11void bibi(void) {12  Buffer buf;13  buf.b = 1;14  AnonymousStruct strct;15  strct.x = 1;16  UnionRecord rec;17  rec.u = 1;18}19 20#import <RecordDefCopy/RecordDefCopy.h>21 22void mbap(void) {23  Buffer buf;24  buf.c = 2;25  AnonymousStruct strct;26  strct.y = 2;27  UnionRecord rec;28  rec.v = 2;29}30