]> granicus.if.org Git - clang/commit
GlobalValue: Testcase for hidden visibility and local linkage
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 May 2014 19:04:31 +0000 (19:04 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 May 2014 19:04:31 +0000 (19:04 +0000)
commitec6a7da7d4478151881f63a7a012bd23f5c6bc11
tree9fd571eeb64b28611bb0a5e5233803c7008dc6ae
parenta87f570af679d1a0fbf9b3e1c731dea3b3ccc651
GlobalValue: Testcase for hidden visibility and local linkage

This is a testcase for r209227, a change in LLVM that automatically sets
visibility to default when the linkage is changed to local (rather than
asserting).

What this testcase triggers is hard to reproduce otherwise:  the
`GlobalValue` is created (with non-local linkage), the visibility is set
to hidden, and then the linkage is set to local.

PR19760

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209228 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/hidden-alias-to-internal-function.c [new file with mode: 0644]