summaryrefslogtreecommitdiffstats
path: root/test/Sema/struct-cast.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/struct-cast.c')
-rw-r--r--test/Sema/struct-cast.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Sema/struct-cast.c b/test/Sema/struct-cast.c
new file mode 100644
index 0000000..063e8e3
--- /dev/null
+++ b/test/Sema/struct-cast.c
@@ -0,0 +1,14 @@
+// RUN: clang-cc -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();
+}
OpenPOWER on IntegriCloud