1 //===-- main.cpp ------------------------------------------------*- C++ -*-===// 2 // 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 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include <stdio.h> 10 struct Summarize 11 { 12 int first; 13 int second; 14 }; 15 16 typedef struct Summarize summarize_t; 17 typedef summarize_t *summarize_ptr_t; 18 19 summarize_t global_mine = {30, 40}; 20 21 struct TwoSummarizes 22 { 23 summarize_t first; 24 summarize_t second; 25 }; 26 27 int 28 main() 29 { 30 summarize_t mine = {10, 20}; 31 summarize_ptr_t mine_ptr = &mine; 32 33 TwoSummarizes twos = { {1,2}, {3,4} }; 34 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); 37 return 0; 38 } 39 40 41