summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2009-05-28-const-typedef.c
blob: e46e83b9478c3ad665d6a4b5be0005818c386607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: clang-cc -emit-llvm %s -o -
// PR4281

typedef struct {
        int i;
} something;

typedef const something const_something;

something fail(void);

int
main(int argc, char *argv[])
{
        const_something R = fail();
}