summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static13.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/static13.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/static13.C19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/static13.C b/gcc/testsuite/g++.old-deja/g++.other/static13.C
new file mode 100644
index 000000000..fa45e8ae4
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/static13.C
@@ -0,0 +1,19 @@
+// { dg-do link }
+// Origin: scott snyder <snyder@fnal.gov>
+
+struct Cleaner
+{
+ ~Cleaner() {}
+};
+
+template <class T>
+void bar ()
+{
+ static Cleaner cleanup;
+}
+
+
+inline
+void foo() { bar<int>(); }
+
+int main () {}