summaryrefslogtreecommitdiff
path: root/gnu/dist/toolchain/libstdc++/stdexcepti.cc
diff options
context:
space:
mode:
authortv <tv@NetBSD.org>2000-07-26 00:17:09 +0000
committertv <tv@NetBSD.org>2000-07-26 00:17:09 +0000
commitdc36174cbda5524f93f5b7f403e5f43dfdd98cae (patch)
tree779f68d62a9c8fb600acae82e6aca92114174bad /gnu/dist/toolchain/libstdc++/stdexcepti.cc
parent48b9eee5e169e02e12f31b637e0495fc0bef28e0 (diff)
Import of gcc 2.95.2 into new gnu/dist/toolchain layout.
Diffstat (limited to 'gnu/dist/toolchain/libstdc++/stdexcepti.cc')
-rw-r--r--gnu/dist/toolchain/libstdc++/stdexcepti.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/dist/toolchain/libstdc++/stdexcepti.cc b/gnu/dist/toolchain/libstdc++/stdexcepti.cc
new file mode 100644
index 00000000000..9c02c71f497
--- /dev/null
+++ b/gnu/dist/toolchain/libstdc++/stdexcepti.cc
@@ -0,0 +1,21 @@
+// Implementation file for Exception Support for -*- C++ -*-
+// This file is part of the GNU ANSI C++ Library.
+
+#ifdef __GNUG__
+#pragma implementation "stdexcept"
+#endif
+
+#include <stdexcept>
+
+// Entry points for string.
+
+void
+__out_of_range (const char *s)
+{
+ throw std::out_of_range (s);
+}
+
+void __length_error (const char *s)
+{
+ throw std::length_error (s);
+}