aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/sizeof4.C
blob: 62d76c05bdd81337029eb0fa1d3569b5445e5c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link: 
// Special g++ Options: -pedantic-errors
// GROUPS passed sizeof
// ARM $5.3.2

int
main()
{
  // sizeof may not be applied to the type void
  int l = sizeof (void);// ERROR - .*

  return 0;
}