summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/c/typedef/main.c
blob: 6c13affbbc106107815260856110d037f7d3d3fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//===-- main.c --------------------------------------------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
int main (int argc, char const *argv[])
{
    typedef float a;
    int i = 0; // Set break point 1.
    i++;
    a floatvariable = 2.7; // Set break point 2.
    {
        typedef char a;
        i++;
        a charvariable = 'a'; // Set break point 3.
    }
    {
        int c = 0;
        c++; // Set break point 4.
        for(i = 0 ; i < 1 ; i++)
        {
            typedef int a;
            a b;
            b = 7; // Set break point 5.
        }
        for(i = 0 ; i < 1 ; i++)
        {
            typedef double a;
            a b;
            b = 3.14; // Set break point 6.
        }
        c = 1; // Set break point 7.
    }
    floatvariable = 2.5;
    floatvariable = 2.8; // Set break point 8.
    return 0;
}
OpenPOWER on IntegriCloud