2 // { dg-options "-O2 -fstrict-aliasing -fno-store-merging -fdump-tree-optimized" }
4 // Test that placement new does not introduce an unnecessary memory
8 typedef __SIZE_TYPE__ size_t;
10 inline void* operator new(size_t, void* __p) throw() { return __p; }
12 template <class T, int D>
18 for (int i = 0; i < D; ++i)
21 T& operator[](int i) { return x_m[i]; }
27 void foo(Vector<float, 3> *m)
36 // { dg-final { scan-tree-dump-times "= 0\.0" 1 "optimized" } }