Test for PR1641.
authorBill Wendling <isanbard@gmail.com>
Fri, 7 Sep 2007 08:30:09 +0000 (08:30 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 7 Sep 2007 08:30:09 +0000 (08:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41762 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-09-05-ConstCtor.c [new file with mode: 0644]

diff --git a/test/CFrontend/2007-09-05-ConstCtor.c b/test/CFrontend/2007-09-05-ConstCtor.c
new file mode 100644 (file)
index 0000000..c267a59
--- /dev/null
@@ -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);
+}