clang/test/Import/struct-layout
Sean Callanan 6dad790d8f This adds the argument --dump-ir to clang-import-test, which allows
viewing of the final IR. This is useful for confirming that 
structure layout was correct.

I've added two tests:

- A test that checks that structs in top-level code are completed 
  correctly during struct layout (they are)
- A test that checks that structs defined in function bodies are 
  cpmpleted correctly during struct layout (currently they are not, 
  so this is XFAIL).

The second test fails because LookupSameContext()
(ExternalASTMerger.cpp) can't find the struct. This is an issue I 
intend to resolve separately.

Differential Revision: https://reviews.llvm.org/D36429


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310318 91177308-0d34-0410-b5e6-96231b3b80d8
2017-08-07 22:27:30 +00:00
..
Inputs This adds the argument --dump-ir to clang-import-test, which allows 2017-08-07 22:27:30 +00:00
test.cpp This adds the argument --dump-ir to clang-import-test, which allows 2017-08-07 22:27:30 +00:00