aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-09-05-ConstCtor.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendC/2007-09-05-ConstCtor.c')
-rw-r--r--test/FrontendC/2007-09-05-ConstCtor.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/FrontendC/2007-09-05-ConstCtor.c b/test/FrontendC/2007-09-05-ConstCtor.c
new file mode 100644
index 0000000..c267a59
--- /dev/null
+++ b/test/FrontendC/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);
+}