blob: f041bc584b1291b27c764355c2d57eb506c068fb [file] [log] [blame]
Fariborz Jahaniane8b31cc2009-11-11 17:55:25 +00001// RUN: clang-cc -emit-llvm -o - %s
2
3// PR5463
4extern "C" int printf(...);
5
6struct S {
7 double filler;
8};
9
10struct Foo {
11 Foo(void) : bar_(), dbar_(), sbar_() {
12 for (int i = 0; i < 5; i++) {
13 printf("bar_[%d] = %d\n", i, bar_[i]);
14 printf("dbar_[%d] = %f\n", i, dbar_[i]);
15 printf("sbar_[%d].filler = %f\n", i, sbar_[i].filler);
16 }
17 }
18
19 int bar_[5];
20 double dbar_[5];
21 S sbar_[5];
22};
23
24int main(void)
25{
26 Foo a;
27}
28