summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/trivial-constructor-init.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-05-21 06:58:08 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-05-21 06:58:08 +0000
commitd5f23b0b7528b5c3caed1ba14f897cc4aaa9e3c3 (patch)
tree133ab22e59f61162b7f8e8e794dd6458769e8e1a /test/CodeGenCXX/trivial-constructor-init.cpp
parent624e91b063cecc3671eeb40e4b0fa08d71b59284 (diff)
Notes
Diffstat (limited to 'test/CodeGenCXX/trivial-constructor-init.cpp')
-rw-r--r--test/CodeGenCXX/trivial-constructor-init.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGenCXX/trivial-constructor-init.cpp b/test/CodeGenCXX/trivial-constructor-init.cpp
index 9130e4e5d959..da17799dfa42 100644
--- a/test/CodeGenCXX/trivial-constructor-init.cpp
+++ b/test/CodeGenCXX/trivial-constructor-init.cpp
@@ -32,3 +32,17 @@ static C c[4];
int main() {
}
+
+namespace PR22793 {
+template <typename>
+struct foo {
+protected:
+// CHECK-NOT: _ZN7PR227933fooIiED2Ev
+ ~foo() = default;
+ friend void func();
+};
+
+void func() { foo<int> f; }
+
+template struct foo<int>;
+}