Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only %s -verify |
Anders Carlsson | 5385991 | 2009-01-13 17:00:51 +0000 | [diff] [blame] | 2 | |
3 | struct S { | ||||
4 | int one; | ||||
5 | int two; | ||||
6 | }; | ||||
7 | |||||
8 | struct S const foo(void); | ||||
9 | |||||
10 | struct S tmp; | ||||
11 | |||||
12 | void priv_sock_init() { | ||||
13 | tmp = (struct S)foo(); | ||||
14 | } |