git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4239
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+#if !defined __GNUC__ || __GNUC__ > 2
/* flexible array members not supported by gcc < 3 */
struct str1
{
/* flexible array members not supported by gcc < 3 */
struct str1
{
static void
testFlexibleArray1(void)
{
static void
testFlexibleArray1(void)
{
-#if __GNUC__ > 2
-/* flexible array members not supported by gcc < 3 */
+#if !defined __GNUC__ || __GNUC__ > 2
+ /* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s11) == 1);
/* test allocation size */
/* test sizeof */
ASSERT(sizeof(s11) == 1);
/* test allocation size */
/* test initialisation with string */
/* test initialisation with string */
+#if !defined __GNUC__ || __GNUC__ > 2
/* flexible array members not supported by gcc < 3 */
struct str2
{
/* flexible array members not supported by gcc < 3 */
struct str2
{
static void
testFlexibleArray2(void)
{
static void
testFlexibleArray2(void)
{
-#if __GNUC__ > 2
-/* flexible array members not supported by gcc < 3 */
+#if !defined __GNUC__ || __GNUC__ > 2
+ /* flexible array members not supported by gcc < 3 */
/* test sizeof */
ASSERT(sizeof(s21) == 2);
/* test allocation size */
/* test sizeof */
ASSERT(sizeof(s21) == 2);
/* test allocation size */