mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 04:25:45 -04:00

- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
29 lines
476 B
C++
29 lines
476 B
C++
// 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;
|
|
}
|
|
|