2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / sizeof5.C
blob551f408cf3eb9788b6f1ccc2c76e5bc6fb6f8e1d
1 // { dg-do run  }
2 // GROUPS passed sizeof
3 // ARM $5.3.2
5 extern "C" int printf (const char *, ...);
7 class foo {};
9 int
10 main ()
12   // The size of any class or class object is larger than zero.
13   int i = sizeof (foo);
14   if (i > 0)
15     printf ("PASS\n");
16   else
17     { printf ("FAIL\n"); return 1; }