diff options
Diffstat (limited to 'clang/test/Sema/struct-cast.c')
-rw-r--r-- | clang/test/Sema/struct-cast.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/Sema/struct-cast.c b/clang/test/Sema/struct-cast.c new file mode 100644 index 0000000..30ef892 --- /dev/null +++ b/clang/test/Sema/struct-cast.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -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(); +} |