1 //===-- main.c --------------------------------------------------*- 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 #include <stdio.h>
9 
10 int g_global_var = 123;
11 static int g_static_var = 123;
12 
13 int main (int argc, char const *argv[])
14 {
15     static int static_var = 123;
16     g_static_var = 123; // clang bug. Need to touch this variable, otherwise it disappears.
17     int i = 0;                                  // breakpoint 1
18     for (i=0; i<1; ++i)
19     {
20         int j = i*2;
21         printf("i = %i, j = %i\n", i, j);       // breakpoint 2
22         {
23             int k = i*j*3;
24             printf("i = %i, j = %i\n", i, j);   // breakpoint 3
25         }
26     }
27     return 0;
28 }
29