* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / ctors15.C
blob8e89b30dbeb90d393e3cc5597bceac7c2ab6e437
1 // { dg-do run  }
2 // GROUPS passed constructors
3 // ctor file
4 // Message-Id: <9303270404.28207@munta.cs.mu.OZ.AU>
5 // From: fjh@cs.mu.oz.au
6 // Subject: bug with new/delete of multidimensional array
7 // Date: Sat, 27 Mar 93 14:04:52 EST
9 #include <stdio.h>
10 #include <stdlib.h>
12 int construct = 0;
14 class Element {
15 public:
16     Element() { construct++; if (construct > 6) {printf ("FAIL\n"); exit(1);}}
17     ~Element() { }
20 typedef Element array[2];
22 int main() {
23     array *x;
24     x = new array[3];
25     delete x;
26     printf ("PASS\n");