diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/dot.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/dot.C | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/dot.C b/gcc/testsuite/g++.old-deja/g++.jason/dot.C deleted file mode 100644 index 3870eead449..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/dot.C +++ /dev/null @@ -1,20 +0,0 @@ -// PRMS Id: 4143 -// Bug: Pointer is silently dereferenced in method call. -// Build don't link: - -extern "C" int printf (const char *, ...); - -class Test -{ - char ch; - public: - Test(char c) : ch(c) {} - void Print() { printf("%c", ch); } -}; - -int main() -{ - Test *p = new Test('x'); - - p.Print(); // ERROR - -} |