summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-27 20:47:16 +0000
committerChris Lattner <sabre@nondot.org>2003-11-27 20:47:16 +0000
commitff4aa6dbe2509fa7c27243d98b611fdb4a4912ea (patch)
tree12dd226d9339725a09c7481b9974a2b35c71a551
parenta24a54d2f4d30751f8f4ff003fca7b390a258301 (diff)
downloadbcm5719-llvm-ff4aa6dbe2509fa7c27243d98b611fdb4a4912ea.tar.gz
bcm5719-llvm-ff4aa6dbe2509fa7c27243d98b611fdb4a4912ea.zip
testcase for PR159
llvm-svn: 10244
-rw-r--r--llvm/test/Regression/CFrontend/2003-11-27-ConstructorCast.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2003-11-27-ConstructorCast.c b/llvm/test/Regression/CFrontend/2003-11-27-ConstructorCast.c
new file mode 100644
index 00000000000..33a9426a972
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2003-11-27-ConstructorCast.c
@@ -0,0 +1,12 @@
+struct i387_soft_struct {
+ long cwd;
+};
+union i387_union {
+ struct i387_soft_struct soft;
+};
+struct thread_struct {
+ union i387_union i387;
+};
+void _init_task_union(void) {
+ struct thread_struct thread = (struct thread_struct) { {{0}} };
+}
OpenPOWER on IntegriCloud