]> granicus.if.org Git - clang/commitdiff
Add coverage test for CFGImplicitDtor::getDestructorDecl() when handling typedefs.
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Mar 2011 17:07:11 +0000 (17:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Mar 2011 17:07:11 +0000 (17:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126947 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/return-noreturn.cpp

index 5f044ca1794553ce9e10dbafcb10a67b48aae0f1..e7998680b08cb6253676207a2440ea050accfc8f 100644 (file)
@@ -43,3 +43,12 @@ void test_PR9380(const PR9380& aKey) {
 void test_array() {
   PR9380 a[2];
 }
+
+// Test classes wrapped in typedefs.  This is purely a coverage test case
+// for CFGImplictDtor::getDestructorDecl().
+void test_typedefs() {
+  typedef PR9380 PR9380_Ty;
+  PR9380_Ty test;
+  PR9380_Ty test2[20];
+}
+