Debian Codegraph @

clang/test/Modules/merge-record-definition-visibility.m

raw
1 // UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2 // RUN: rm -rf %t
3 // RUN: mkdir %t
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
6
7 // Test a case when a struct definition is first imported as invisible and then as visible.
8
9 #import <RecordDefHidden/Visible.h>
10 #import <RecordDef/RecordDef.h>
11
12 void bibi(void) {
13 Buffer buf;
14 buf.b = 1;
15 AnonymousStruct strct;
16 strct.y = 1;
17 UnionRecord rec;
18 rec.u = 1;
19 }