llvm-project/clang/test/CodeGen/2007-09-05-ConstCtor.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
207 B
C
Raw Normal View History

// RUN: %clang_cc1 -Os -emit-llvm %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);
}