llvm-project/llvm/test/FrontendC/2007-09-05-ConstCtor.c

15 lines
200 B
C

// RUN: %llvmgcc -xc -Os -S %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);
}