18 lines · c
1// RUN: %clang_cc1 -fsyntax-only %s -verify2// RUN: %clang_cc1 -fsyntax-only %s -fexperimental-new-constant-interpreter -verify3// expected-no-diagnostics4 5struct S {6 int one;7 int two;8};9 10struct S const foo(void);11 12 13struct S tmp;14 15void priv_sock_init(void) {16 tmp = (struct S)foo();17}18