]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/lang/c/typedef/main.c
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / lang / c / typedef / main.c
1 //===-- main.c --------------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 void test()
10 {
11     typedef double * a;
12     a b = 0; // Set break point 4.
13 }
14 int main (int argc, char const *argv[])
15 {
16     typedef float a;
17     int i = 0; // Set break point 1.
18     i++;
19     a floatvariable = 2.7; // Set break point 2.
20     {
21         typedef char a;
22         i++;
23         a charvariable = 'a'; // Set break point 3.
24         test();
25     }
26     {
27         int c = 0;
28         c++; // Set break point 5.
29         for(i = 0 ; i < 1 ; i++)
30         {
31             typedef int a;
32             a b;
33             b = 7; // Set break point 6.
34         }
35         for(i = 0 ; i < 1 ; i++)
36         {
37             typedef double a;
38             a b;
39             b = 3.14; // Set break point 7.
40         }
41         c = 1; // Set break point 8.
42     }
43     floatvariable = 2.5;
44     floatvariable = 2.8; // Set break point 9.
45     return 0;
46 }