DebugInfo: Give externally defined types a size and alignment where
possible. Fixes PR22736.
llvm-svn: 230914
diff --git a/clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp b/clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
index 4613038..b0ba299 100644
--- a/clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
+++ b/clang/test/CodeGenCXX/debug-info-template-explicit-specialization.cpp
@@ -99,3 +99,11 @@
struct k<int>;
template struct k<int>;
// CHECK-NOT: ; [ DW_TAG_structure_type ] [k<int>]
+
+template <typename T>
+struct l {
+ int x;
+};
+extern template class l<int>;
+l<int> li;
+// CHECK: [ DW_TAG_structure_type ] [l<int>] {{.*}}size {{[^0]}}