| 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 |
| 19 |
void public(); |
| 20 |
|
| 21 |
//--- Frameworks/Autolink.framework/PrivateHeaders/Autolink_Private.h |
| 22 |
void private(); |
| 23 |
|
| 24 |
//--- Frameworks/Autolink.framework/Modules/module.modulemap |
| 25 |
framework module Autolink { header "Autolink.h"} |
| 26 |
|
| 27 |
//--- Frameworks/Autolink.framework/Modules/module.private.modulemap |
| 28 |
framework module Autolink_Private { header "Autolink_Private.h"} |
| 29 |
|