aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2005-02-27-PlacementArrayNewCrash.cpp
blob: a8fc6685ac4c3d0279a5905fc57f23ebdc3ae1b4 (plain)
1
2
3
4
5
6
7
8
// RUN: %llvmgxx -S %s -o -

#include <new>
typedef double Ty[4];

void foo(Ty *XX) {
  new(XX) Ty();
}