diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/goto.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/goto.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/goto.C b/gcc/testsuite/g++.old-deja/g++.pt/goto.C new file mode 100644 index 000000000..f138ec2be --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/goto.C @@ -0,0 +1,12 @@ +// { dg-do assemble } + +template<class T> +void compute(T) { + goto Exit; +Exit: ; + } + +int main() +{ + compute(0); +} |