From 0fe4b5a113625f0b3f88a92ec8c482527b72af02 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 7 Sep 2007 08:30:09 +0000 Subject: [PATCH] Test for PR1641. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41762 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2007-09-05-ConstCtor.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/CFrontend/2007-09-05-ConstCtor.c diff --git a/test/CFrontend/2007-09-05-ConstCtor.c b/test/CFrontend/2007-09-05-ConstCtor.c new file mode 100644 index 00000000000..c267a590334 --- /dev/null +++ b/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); +}