diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash27.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash27.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash27.C b/gcc/testsuite/g++.old-deja/g++.pt/crash27.C new file mode 100644 index 000000000..ccc002d15 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash27.C @@ -0,0 +1,13 @@ +// { dg-do assemble } + +template<int i> int f (void) +{ + if (__extension__ ({ 1; })) + return 0; + return 1; +} + +void g (void) +{ + f<1> (); +} |