Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / dot.C
blob41b8d814f4ce4d0e25559a9d81050c66ba6db0a7
1 // { dg-do assemble  }
2 // PRMS Id: 4143
3 // Bug: Pointer is silently dereferenced in method call.
5 extern "C" int printf (const char *, ...);
7 class Test
9     char ch;
10   public:
11     Test(char c) : ch(c) {}
12     void Print() { printf("%c", ch); }
15 int main()
17     Test *p = new Test('x');
19     p.Print();  // { dg-error "" }