diff options
Diffstat (limited to 'test/FrontendC/2007-09-05-ConstCtor.c')
-rw-r--r-- | test/FrontendC/2007-09-05-ConstCtor.c | 14 |
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..8e0e994 --- /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 = 1234; + struct A a = { vcgt }; + bar(&a); +} |