Debug Info: Add a testcase for the bug introduced by r259975.
authorAdrian Prantl <aprantl@apple.com>
Fri, 25 Mar 2016 00:20:35 +0000 (00:20 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 25 Mar 2016 00:20:35 +0000 (00:20 +0000)
commit53058380bb03394b9ee2e4f9f6ab43f5270fc6fa
treed2434532aaeee3f1e0492bac343b9bf4ac09f338
parent9f7e2d765702f1e9f85ab55f34b21b5824857635
Debug Info: Add a testcase for the bug introduced by r259975.
In r259975 we rauw'ed the scope of enum declarations without taking into
account that DIBuilder strips out scope references that point to the
DICompileUnit to facilitate type uniquing.

This testcase guards against making the same mistake again.
<rdar://problem/25078246>

llvm-svn: 264366
clang/test/CodeGenCXX/debug-info-enum-class.cpp