blob: 3456665a8c55fc19c46929517a129a273691605f [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only %s -verify
Anders Carlsson53859912009-01-13 17:00:51 +00002
3struct S {
4 int one;
5 int two;
6};
7
Douglas Gregor5291c3c2010-07-13 08:18:22 +00008struct S const foo(void); // expected-warning{{type qualifier on return type has no effect}}
9
Anders Carlsson53859912009-01-13 17:00:51 +000010
11struct S tmp;
12
13void priv_sock_init() {
14 tmp = (struct S)foo();
15}