]> granicus.if.org Git - clang/commit
Assert that redeclarations have the same linkage.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 5 Jan 2013 01:28:37 +0000 (01:28 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 5 Jan 2013 01:28:37 +0000 (01:28 +0000)
commit6acc4bc44db341d499a925cfe68bea89390039a4
tree639c7a71648b8b6656211864d7e21f92ac1793fb
parentba3c9ca16b3992248ec654ce9ec8c841c1c6d1e9
Assert that redeclarations have the same linkage.

It is somewhat hard to test linkage, so I decided to try to add an assert. This
already found some interesting cases where there were different.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171585 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/SemaCXX/linkage2.cpp