annotate clang/test/Modules/private.cpp @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: rm -rf %t
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/private %s -verify
anatofuz
parents:
diff changeset
3 // RUN: %clang_cc1 -x objective-c -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/private %s -fsyntax-only -Wno-private-header
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 #include "common.h"
anatofuz
parents:
diff changeset
6 @import libPrivate1;
anatofuz
parents:
diff changeset
7 #include "private1.h" // expected-error {{use of private header from outside its module}}
anatofuz
parents:
diff changeset
8 #include "public2.h"
anatofuz
parents:
diff changeset
9 #include "private2.h" // expected-error {{use of private header from outside its module}}
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 struct use_this1 client_variable1;
anatofuz
parents:
diff changeset
12 struct use_this2 client_variable2;
anatofuz
parents:
diff changeset
13 struct mitts_off1 client_variable3;
anatofuz
parents:
diff changeset
14 struct mitts_off2 client_variable4;