xref: /llvm-project/clang/test/Modules/autolink_private_module.m (revision 1b8e39a1a2e8237852914501e3361d98af6db054)
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
2
3// Test that autolink hints for frameworks don't use the private module name.
4// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
5
6// RUN: rm -rf %t && mkdir %t
7// RUN: split-file %s %t
8
9// RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t/ModuleCache -fmodules -fimplicit-module-maps -F %t/Frameworks %t/test.m | FileCheck %s
10
11// CHECK:     !{!"-framework", !"Autolink"}
12// CHECK-NOT: !{!"-framework", !"Autolink_Private"}
13
14//--- test.m
15#include <Autolink/Autolink.h>
16#include <Autolink/Autolink_Private.h>
17
18//--- Frameworks/Autolink.framework/Headers/Autolink.h
19void public();
20
21//--- Frameworks/Autolink.framework/PrivateHeaders/Autolink_Private.h
22void private();
23
24//--- Frameworks/Autolink.framework/Modules/module.modulemap
25framework module Autolink { header "Autolink.h"}
26
27//--- Frameworks/Autolink.framework/Modules/module.private.modulemap
28framework module Autolink_Private { header "Autolink_Private.h"}
29
30