diff options
Diffstat (limited to 'clang/test/Sema/struct-cast.c')
| -rw-r--r-- | clang/test/Sema/struct-cast.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Sema/struct-cast.c b/clang/test/Sema/struct-cast.c new file mode 100644 index 00000000000..734be804e6e --- /dev/null +++ b/clang/test/Sema/struct-cast.c @@ -0,0 +1,14 @@ +// RUN: clang -fsyntax-only %s -verify + +struct S { + int one; + int two; +}; + +struct S const foo(void); + +struct S tmp; + +void priv_sock_init() { + tmp = (struct S)foo(); +} |

