3 extern "C" int printf (const char *, ...);
10 char x1; /* Usually 3 padding bytes are added after x1 member. */
17 struct A { char i1; int i2; };
22 template struct T<int>; /* T<int> is instantiated here */
23 template int f<int>();
26 template struct T<float>; /* T<float> is required here */
27 template int f<double>();
31 printf("sizeof T<int> = %d\n", sizeof(T<int>));
32 printf("sizeof T<float> = %d\n", sizeof(T<float>));
33 printf("f<int>() = %d\n", f<int>());
34 printf("f<float>() = %d\n", f<float>());
35 return (sizeof(T<int>) != sizeof(T<float>)
36 || f<int>() != f<float>());