debug-info.c revision 91cc815ffd13d4a78ae1b5bd617e19dd555de4f4
1// RUN: clang-cc -o %t --emit-llvm -g %s &&
2// RUN: FileCheck --input-file=%t %s
3
4// PR3023
5void convert(void) {
6  struct { typeof(0) f0; } v0;
7}
8
9
10// PR2784
11struct OPAQUE;
12typedef struct OPAQUE *PTR;
13PTR p;
14
15
16// PR2950
17struct s0;
18struct s0 { struct s0 *p; } g0;
19
20struct s0 *f0(struct s0 *a0) {
21  return a0->p;
22}
23
24
25// PR3134
26char xpto[];
27
28
29// PR3427
30struct foo {
31  int a;
32  void *ptrs[];
33};
34struct foo bar;
35
36
37// PR4143
38struct foo2 {
39  enum bar *bar;
40};
41
42struct foo2 foo2;
43
44
45// CHECK: "barfoo"
46typedef int barfoo;
47barfoo foo() {
48}
49