summaryrefslogtreecommitdiffstats
path: root/llvm/test/CFrontend
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-07 08:30:09 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-07 08:30:09 +0000
commit5f912b91497f1a44f410fd53151e57062b9f6136 (patch)
tree973febfb9620c518b8ebb7d32e5ec219d2964934 /llvm/test/CFrontend
parent85a51e0060d1081571bd961eb5205cdaa2efbf5b (diff)
downloadbcm5719-llvm-5f912b91497f1a44f410fd53151e57062b9f6136.tar.gz
bcm5719-llvm-5f912b91497f1a44f410fd53151e57062b9f6136.zip
Test for PR1641.
llvm-svn: 41762
Diffstat (limited to 'llvm/test/CFrontend')
-rw-r--r--llvm/test/CFrontend/2007-09-05-ConstCtor.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2007-09-05-ConstCtor.c b/llvm/test/CFrontend/2007-09-05-ConstCtor.c
new file mode 100644
index 00000000000..c267a590334
--- /dev/null
+++ b/llvm/test/CFrontend/2007-09-05-ConstCtor.c
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc -xc -Os -c %s -o /dev/null
+// PR1641
+
+struct A {
+ unsigned long l;
+};
+
+void bar(struct A *a);
+
+void bork() {
+ const unsigned long vcgt = 'vcgt';
+ struct A a = { vcgt };
+ bar(&a);
+}
OpenPOWER on IntegriCloud