diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-10 01:53:46 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-10 01:53:46 +0000 |
commit | 15aa81a4746697311f71f5802ce27c7dc98b2ff3 (patch) | |
tree | 1320ef3c037c95cb23edd216e094a4406dce9882 /test/Preprocessor | |
parent | 507d496e18fb7bf54e4cb8f79df56941f93f1eda (diff) |
[frontend] When preprocessing, turn implicit module imports into @imports.
part of rdar://13610250
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r-- | test/Preprocessor/pp-modules.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Preprocessor/pp-modules.c b/test/Preprocessor/pp-modules.c new file mode 100644 index 0000000000..c6c3ecc034 --- /dev/null +++ b/test/Preprocessor/pp-modules.c @@ -0,0 +1,11 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c %s -F %S/../Modules/Inputs -E -o - | FileCheck %s + +// CHECK: int bar(); +int bar(); +// CHECK: @import Module; /* clang -E: implicit import for "{{.*Headers[/\\]Module.h}}" */ +#include <Module/Module.h> +// CHECK: int foo(); +int foo(); +// CHECK: @import Module; /* clang -E: implicit import for "{{.*Headers[/\\]Module.h}}" */ +#include <Module/Module.h> |