1 | // RUN: %clang_cc1 -fsyntax-only %s -verify |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct S { |
5 | int one; |
6 | int two; |
7 | }; |
8 | |
9 | struct S const foo(void); |
10 | |
11 | |
12 | struct S tmp; |
13 | |
14 | void priv_sock_init() { |
15 | tmp = (struct S)foo(); |
16 | } |
17 |
1 | // RUN: %clang_cc1 -fsyntax-only %s -verify |
---|---|
2 | // expected-no-diagnostics |
3 | |
4 | struct S { |
5 | int one; |
6 | int two; |
7 | }; |
8 | |
9 | struct S const foo(void); |
10 | |
11 | |
12 | struct S tmp; |
13 | |
14 | void priv_sock_init() { |
15 | tmp = (struct S)foo(); |
16 | } |
17 |