Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -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 | } |