2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / sizeof4.C
blob3ac0a8e2ec573b208feaab7be2d43ce2df261b4b
1 // { dg-do assemble  }
2 // { dg-options "-pedantic-errors" }
3 // GROUPS passed sizeof
4 // ARM $5.3.2
6 int
7 main()
9   // sizeof may not be applied to the type void
10   int l = sizeof (void);// { dg-error "" } .*
12   return 0;