diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg1.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C new file mode 100644 index 000000000..6ded34353 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg1.C @@ -0,0 +1,13 @@ +// { dg-do assemble } +// Bug: g++ parses the declaration of i as a functional cast. + +void take_int (int arg) { } + +void +test () +{ + int (i); + + i = 0; + take_int (i); +} |