[Modules] Add testcase for builtins used in umbrella headers
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 28 Oct 2016 02:30:45 +0000 (02:30 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Fri, 28 Oct 2016 02:30:45 +0000 (02:30 +0000)
commit0ac158a528d3f490af6e4ed5a7d8ff7f878f9baf
tree01108c93127c66db79880f0d36917a8c340b05ff
parent58fbc916a0a4ad57ec6d3dd1d1a4f0dd7405f69f
[Modules] Add testcase for builtins used in umbrella headers

This used to work before r284797 + r285152, which exposed something
interesting; some users include builtins from umbrella headers.

Clang should emit a warning to warn users this is not a good practice
and umbrella headers shouldn't get the
implicitly-add-the-builtin-version behavior for builtin header names.

While we're not there, add the testcase to represent the way it
currently works.

llvm-svn: 285377
clang/test/Modules/Inputs/libc-libcxx/sysroot/Frameworks/A.framework/Headers/A.h [new file with mode: 0644]
clang/test/Modules/Inputs/libc-libcxx/sysroot/Frameworks/A.framework/Headers/int.h [new file with mode: 0644]
clang/test/Modules/Inputs/libc-libcxx/sysroot/Frameworks/A.framework/Modules/module.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/module.modulemap
clang/test/Modules/Inputs/libc-libcxx/sysroot/usr/include/c++/v1/stdint.h [new file with mode: 0644]
clang/test/Modules/umbrella-header-include-builtin.mm [new file with mode: 0644]