comparison gcc/testsuite/g++.old-deja/g++.brendan/sizeof1.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
7 7
8 int 8 int
9 main() 9 main()
10 { 10 {
11 // sizeof may not be applied to a function 11 // sizeof may not be applied to a function
12 int i = sizeof( f);// { dg-error "" } .* 12 int i = sizeof( f);// { dg-error "19:ISO C\\+\\+ forbids applying .sizeof." } .*
13 13
14 return 0; 14 return 0;
15 } 15 }