summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2009-05-28-const-typedef.c
blob: 3464fde685447c75da6a0af0d84c77d7b5175e1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -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();
}