llvm/clang/test/CodeGen/2009-05-28-const-typedef.c

// 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();
}