1 //===-- main.cpp ------------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
16 typedef struct Summarize summarize_t;
17 typedef summarize_t *summarize_ptr_t;
19 summarize_t global_mine = {30, 40};
30 summarize_t mine = {10, 20};
31 summarize_ptr_t mine_ptr = &mine;
33 TwoSummarizes twos = { {1,2}, {3,4} };
35 printf ("Summarize: first: %d second: %d and address: 0x%p\n", mine.first, mine.second, mine_ptr); // Set break point at this line.
36 printf ("Global summarize: first: %d second: %d.\n", global_mine.first, global_mine.second);