1//===-- main.c --------------------------------------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#include <stdint.h>
10
11struct foo
12{
13    uint32_t a;
14    uint32_t b;
15    float c;
16    foo() : a(0), b(1), c(3.14) {}
17    foo(uint32_t A, uint32_t B, float C) :
18        a(A),
19        b(B),
20        c(C)
21    {}
22};
23
24int main (int argc, char const *argv[])
25{
26    foo* foobar = new foo[2];
27
28    foobar[0].a = 1;
29    foobar[0].b = 9;
30
31    foobar[1].a = 8;
32    foobar[1].b = 5;
33
34    foobar[1].b = 7; // set breakpoint here
35
36    foobar[1].c = 6.28;
37
38    foo barfoo[] = {foo(1,2,3), foo(4,5,6)};
39
40    delete[] foobar;
41
42    return 0;
43}
44