summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/static5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/static5.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/static5.C16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/static5.C b/gcc/testsuite/g++.old-deja/g++.other/static5.C
new file mode 100644
index 000000000..b4032bed2
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/static5.C
@@ -0,0 +1,16 @@
+// { dg-do assemble }
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+struct S
+{
+ ~S();
+};
+
+inline void f()
+{
+ static S s;
+ atexit (0); // { dg-error "" } implicit declaration
+}
+
+
+