Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/other/large-size-array.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 |
---|---|
18 } | 18 } |
19 | 19 |
20 int | 20 int |
21 main (void) | 21 main (void) |
22 { | 22 { |
23 int a[DIM][DIM]; /* { dg-error "size of array 'a' is too large" } */ | 23 int a[DIM][DIM]; /* { dg-error "7:exceeds maximum object size" } */ |
24 return sub (&a[0][0]); /* { dg-error "declared" } */ | 24 return sub (&a[0][0]); /* { dg-error "declared" } */ |
25 } | 25 } |
26 | 26 |
27 | 27 |