diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/crash27.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/crash27.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/crash27.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/crash27.C new file mode 100755 index 0000000..f52f1ba --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/crash27.C @@ -0,0 +1,13 @@ +// Build don't link: + +template<int i> int f (void) +{ + if (__extension__ ({ 1; })) + return 0; + return 1; +} + +void g (void) +{ + f<1> (); +} |