blob: 86c771a8b0a21b5d821df98f3416e7595599bf46 [file] [log] [blame]
Fariborz Jahaniana6362992009-10-21 18:38:00 +00001// RUN: clang-cc -emit-llvm -o - %s
2
3extern "C" int printf(...);
4
5class A {
6public:
7 A() : f(1.0), d(2.0), Ai(100) {}
8 float f;
9 double d;
10 int Ai;
11};
12
13int main()
14{
15 A a1;
16 int A::* pa = &A::Ai;
17 float A::* pf = &A::f;
18 double A::* pd = &A::d;
19 printf("%d %d %d\n", &A::Ai, &A::f, &A::d);
20
21 // FIXME. NYI
22 // printf(" %d, %f, %f \n", a1.*pa, a1.f, a1.d);
23}
24
25