]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/warning5.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / warning5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/warning5.C b/gcc/testsuite/g++.old-deja/g++.jason/warning5.C
deleted file mode 100644 (file)
index 239d867..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-// PRMS Id: 5135
-// Bug: g++ complains that the result of the new expression is not used.
-// Special g++ Options: -Wall
-
-extern "C" int printf (const char *, ...);
-inline void * operator new (__SIZE_TYPE__, void *p) { return p; }
-
-class foo {
-public:
-  foo() : a(42) {};
-  int a;
-};
-
-int
-main()
-{
-  char buffer[1024];
-
-  new (buffer) foo;
-
-  foo* pY = (foo *)buffer;
-
-  return pY->a != 42;
-}