brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 0cea9db Raw
26 lines · plain
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-include-translation %s -I %S/Inputs \3// RUN:     -fmodule-implementation-of category_right -fsyntax-only4 5// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-include-translation %s -I %S/Inputs \6// RUN:     -fmodule-implementation-of category_right -dM -E -o - 2>&1 | FileCheck %s7// CHECK-NOT: __building_module8 9// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-include-translation %s -I %S/Inputs \10// RUN:     -fmodule-implementation-of category_left -verify11 12// RUN: %clang_cc1 -x objective-c-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-include-translation %s -I %S/Inputs \13// RUN:     -fmodule-implementation-of category_right -emit-pch -o %t.pch14// RUN: %clang_cc1 -x objective-c-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -Rmodule-include-translation %s -I %S/Inputs \15// RUN:     -DWITH_PREFIX -fmodules-ignore-macro=WITH_PREFIX -include-pch %t.pch -fmodule-implementation-of category_right16 17#ifndef WITH_PREFIX18 19@import category_left; // expected-error{{@import of module 'category_left' in implementation of 'category_left'; use #import}}20@import category_left.sub; // expected-error{{@import of module 'category_left.sub' in implementation of 'category_left'; use #import}}21#import "category_right.h" // expected-remark{{treating}}22#import "category_right_sub.h" // expected-remark{{treating}}23 24#endif25 26