diff options
author | Sean Callanan <scallanan@apple.com> | 2017-07-10 23:47:00 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2017-07-10 23:47:00 +0000 |
commit | 660c98f3e30c5c1b6aa566365ec22ea34d09eacf (patch) | |
tree | fe5404a443c17773833ea5e53bba844908c5b626 /test/Import | |
parent | dc3817f04345e25d8b14db950d9d3d46d792f292 (diff) |
clang-import-test had some dead code. I did the following to eliminate it:
- eliminated error handling for the indirect CompilerInstance, which should
never generate an error as it is created;
- added a new test for direct importation; and
- removed an unused implementation of the CompleteType() API.
This brings clang-import-test.cpp and ExternalASTMerge.cpp back to 100%
coverage on all metrics measured by DLLVM_BUILD_INSTRUMENTED_COVERAGE.
Differential Revision: https://reviews.llvm.org/D35220
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Import')
-rw-r--r-- | test/Import/direct/Inputs/S.c | 3 | ||||
-rw-r--r-- | test/Import/direct/test.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/Import/direct/Inputs/S.c b/test/Import/direct/Inputs/S.c new file mode 100644 index 0000000000..b0876d27df --- /dev/null +++ b/test/Import/direct/Inputs/S.c @@ -0,0 +1,3 @@ +struct S { + int a; +}; diff --git a/test/Import/direct/test.c b/test/Import/direct/test.c new file mode 100644 index 0000000000..5fac24c015 --- /dev/null +++ b/test/Import/direct/test.c @@ -0,0 +1,5 @@ +// RUN: clang-import-test -direct -import %S/Inputs/S.c -expression %s +void expr() { + struct S MyS; + MyS.a = 3; +} |