summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20030626-1.c
blob: 2b2dc32e1dff50c850300669210e51b470ddf4aa (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
25
/*
   20030626-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#include <stdio.h>

char buf[10];

void
testTortureExecute (void)
{
#if !defined( __SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
  int l = sprintf (buf, "foo\0bar");
  if (l != 3)
    ASSERT (0);
  return;
#endif
}