2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only %s -verify
|
2009-01-14 01:00:51 +08:00
|
|
|
|
|
|
|
struct S {
|
|
|
|
int one;
|
|
|
|
int two;
|
|
|
|
};
|
|
|
|
|
2010-07-14 14:36:18 +08:00
|
|
|
struct S const foo(void);
|
2010-07-13 16:18:22 +08:00
|
|
|
|
2009-01-14 01:00:51 +08:00
|
|
|
|
|
|
|
struct S tmp;
|
|
|
|
|
|
|
|
void priv_sock_init() {
|
|
|
|
tmp = (struct S)foo();
|
|
|
|
}
|