diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/eh/nrv1_y.C')
-rw-r--r-- | gcc/testsuite/g++.dg/compat/eh/nrv1_y.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C b/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C new file mode 100644 index 000000000..5a43af7c2 --- /dev/null +++ b/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C @@ -0,0 +1,8 @@ +#include "nrv1.h" + +A f() +{ + A nrv; + throw 42; + return nrv; +} |