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

15 lines
200 B
C
Raw Normal View History

// RUN: %llvmgcc -xc -Os -S %s -o /dev/null
2007-09-07 16:30:09 +08:00
// PR1641
struct A {
unsigned long l;
};
void bar(struct A *a);
void bork() {
2008-06-20 13:31:04 +08:00
const unsigned long vcgt = 1234;
2007-09-07 16:30:09 +08:00
struct A a = { vcgt };
bar(&a);
}