blob: a8d7dfc0c2510c75900907da9354b11d88b01138 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/*
20010114-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* Origin: PR c/1540 from Mattias Lampe <lampe@tu-harburg.de>,
adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
GCC 2.95.2 fails, CVS GCC of 2001-01-13 passes. */
void
testTortureExecute (void)
{
int array1[1] = { 1 };
int array2[2][1]= { { 1 }, { 0 } };
if (array1[0] != 1)
ASSERT (0);
return;
}
|