aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-09-05-ConstCtor.c
blob: 8e0e9945ffaa97fdeec2b094c0e083b5eb8022fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
}