2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only %s -verify
|
2012-12-02 13:20:44 +00:00
|
|
|
// expected-no-diagnostics
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
struct S {
|
|
|
|
int one;
|
|
|
|
int two;
|
|
|
|
};
|
|
|
|
|
2010-07-15 17:07:12 +00:00
|
|
|
struct S const foo(void);
|
2010-07-13 17:21:42 +00:00
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
struct S tmp;
|
|
|
|
|
|
|
|
void priv_sock_init() {
|
|
|
|
tmp = (struct S)foo();
|
|
|
|
}
|