OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.eh
/
spec1.C
diff --git
a/gcc/testsuite/g++.old-deja/g++.eh/spec1.C
b/gcc/testsuite/g++.old-deja/g++.eh/spec1.C
index
73ee960
..
0ff8883
100644
(file)
--- a/
gcc/testsuite/g++.old-deja/g++.eh/spec1.C
+++ b/
gcc/testsuite/g++.old-deja/g++.eh/spec1.C
@@
-1,3
+1,4
@@
+// { dg-do run }
// Testing exception specifications.
// Test 1: the original exception succeeds.
// Testing exception specifications.
// Test 1: the original exception succeeds.
@@
-8,15
+9,15
@@
void my_term () { exit (1); }
void my_unexp () { throw 42; }
void
void my_unexp () { throw 42; }
void
-f () throw (char, int, bad_exception)
+f () throw (char, int,
std::
bad_exception)
{
throw 'a';
}
{
throw 'a';
}
-main ()
+
int
main ()
{
{
- set_terminate (my_term);
- set_unexpected (my_unexp);
+ s
td::s
et_terminate (my_term);
+ s
td::s
et_unexpected (my_unexp);
try
{
try
{
@@
-30,7
+31,7
@@
main ()
{
return 3;
}
{
return 3;
}
- catch (bad_exception)
+ catch (
std::
bad_exception)
{
return 4;
}
{
return 4;
}