blob: 5fe6c2022d8f0d40a6f5c01790c2b0c3f2165bb7 [file] [log] [blame]
// RUN: %clang_cc1 -emit-llvm -o - %s
// PR5463
extern "C" int printf(...);
struct S {
double filler;
};
struct Foo {
Foo(void) : bar_(), dbar_(), sbar_() {
for (int i = 0; i < 5; i++) {
printf("bar_[%d] = %d\n", i, bar_[i]);
printf("dbar_[%d] = %f\n", i, dbar_[i]);
printf("sbar_[%d].filler = %f\n", i, sbar_[i].filler);
}
}
int bar_[5];
double dbar_[5];
S sbar_[5];
};
int main(void)
{
Foo a;
}