struct-cast.c 201 B

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