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 11 struct contained 12 { 13 int first; 14 int second; 15 }; 16 17 struct container 18 { 19 int scalar; 20 struct contained *pointer; 21 }; 22 23 int main () 24 { 25 struct container mine = {1, 0}; 26 printf ("Mine's scalar is the only thing that is good: %d.\n", mine.scalar); // Set break point at this line. 27 return 0; 28 } 29 30