diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.jason/cast1.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.jason/cast1.C | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.jason/cast1.C b/gcc_arm/testsuite/g++.old-deja/g++.jason/cast1.C new file mode 100755 index 0000000..4e987ea --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.jason/cast1.C @@ -0,0 +1,8 @@ +// Bug: g++ fails to grok functional casts in all situations. +// Build don't link: + +class A { +public: + typedef int B; + static B foo() { return B(1); } // gets bogus error - +}; |