brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 6aff3db Raw
23 lines · c
1// REQUIRES: case-insensitive-filesystem2 3// RUN: rm -rf %t4// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/Frameworks -I %S/Inputs/Headers %s 2>&1 | FileCheck %s5 6// RUN: rm -rf %t7// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -iframework %S/Inputs/Frameworks -isystem %S/Inputs/Headers %s -Werror8 9// RUN: rm -rf %t10// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -iframework %S/Inputs/Frameworks -isystem %S/Inputs/Headers %s -Wnonportable-private-system-apinotes-path 2>&1 | FileCheck %s11 12#include <ModuleWithWrongCase.h>13#include <ModuleWithWrongCasePrivate.h>14#include <FrameworkWithWrongCase/FrameworkWithWrongCase.h>15#include <FrameworkWithWrongCasePrivate/FrameworkWithWrongCasePrivate.h>16#include <FrameworkWithActualPrivateModule/FrameworkWithActualPrivateModule_Private.h>17 18// CHECK-NOT: warning:19// CHECK: warning: private API notes file for module 'ModuleWithWrongCasePrivate' should be named 'ModuleWithWrongCasePrivate_private.apinotes', not 'ModuleWithWrongCasePrivate_Private.apinotes'20// CHECK-NOT: warning:21// CHECK: warning: private API notes file for module 'FrameworkWithWrongCasePrivate' should be named 'FrameworkWithWrongCasePrivate_private.apinotes', not 'FrameworkWithWrongCasePrivate_Private.apinotes'22// CHECK-NOT: warning:23